|

楼主 |
发表于 2021-3-7 18:19:53
|
显示全部楼层
谢谢,问题不少,应该是iffi123老师提出的拼写错误和.h文件也没加的原因,刚刚学习比葫芦画瓢也没做好
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Program Files (x86)\keil\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling usart1.c...
usart1.c(187): warning: #223-D: function "whil" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(187): warning: #223-D: function "USART_GatFlagStatus" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(193): warning: #223-D: function "intoa" declared implicitly
intoa(d,buf,10);
usart1.c(196): error: #513: a value of type "char (*)[16]" cannot be assigned to an entity of type "const char *"
for(s=&buf;*s;s++)
usart1.c(199): warning: #223-D: function "whil" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(199): warning: #223-D: function "USART_GatFlagStatus" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(210): warning: #223-D: function "whil" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(210): warning: #223-D: function "USART_GatFlagStatus" declared implicitly
whil(USART_GatFlagStatus(USARTx,USART_FLAG_TC)==RESET);
usart1.c(97): warning: #177-D: function "itoa" was declared but never referenced
static char *itoa(int value,char *string,int radix )
usart1.c: 8 warnings, 1 error
"..\usart1.axf" - 1 Error(s), 8 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00 |
|