با سلام
تو یه پروژه از sd mmc-spi-usart استفاده کردم spi و mmc بدون هیچ مشکلی کار می کنه ولی وقتی usart رو به پروژه اضافه می کنم کلی error و warning میده
با تشکر
[HTML]Build target 'AT91SAM7X'
compiling main.c...
D:\Program Files\keil arm\ARM\RV31\Inc\File_Config.h(277): warning: #368-D: class "<unnamed>" defines no constructor to initialize the following:
error.h(1254): warning: #1-D: last line of file ends without a newline
usart.h(129): warning: #2681-D: name linkage conflicts with previous declaration of variable "std::__stdout" (declared at line 97 of "D:\Program Files\keil arm\ARM\RV31\Inc\stdio.h")
usart.h(129): error: #70: incomplete type is not allowed
usart.h(130): warning: #2681-D: name linkage conflicts with previous declaration of variable "std::__stdin" (declared at line 97 of "D:\Program Files\keil arm\ARM\RV31\Inc\stdio.h")
usart.h(130): error: #70: incomplete type is not allowed
usart.h(132): error: #734: function "fputc(int, std::FILE *)" conflicts with using-declaration of function "std::fputc(int, std::FILE *) C"
usart.h(137): error: #734: function "fgetc(std::FILE *)" conflicts with using-declaration of function "std::fgetc(std::FILE *) C"
usart.h(152): error: #734: function "ferror(std::FILE *)" conflicts with using-declaration of function "std::ferror(std::FILE *) C"
main.c(588): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(596): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(604): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(612): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(622): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(623): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(625): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(626): error: #308: more than one instance of overloaded function "fgetc" matches the argument list:
main.c(72): warning: #177-D: variable "bs" was declared but never referenced
main.c(72): warning: #177-D: variable "sms" was declared but never referenced
main.c(74): warning: #550-D: variable "numkey" was set but never used
main.c(77): warning: #177-D: variable "enter" was declared but never referenced
main.c(78): warning: #177-D: variable "dubl" was declared but never referenced
main.c(79): warning: #177-D: variable "ctrlz" was declared but never referenced
main.c(241): warning: #177-D: label "offsystem" was declared but never referenced
Target not created[/HTML]