编译显示:
main.c(31): warning: #188-D: enumerated type mixed with another type
RCCU_PCLKConfig(RCCU_Div_2); //PCLK2=24MHz APB2 periph
main.c(32): warning: #188-D: enumerated type mixed with another type
RCCU_FCLKConfig(RCCU_Div_2); //PCLK1=24MHz APB1 periph (fast)
main.c(74): warning: #188-D: enumerated type mixed with another type
HDLC_Init_Xmit(HDLC_NRZ); //NRZ coding used
main.c(77): warning: #188-D: enumerated type mixed with another type
HDLC_Init_Recv(HDLC_PAE | HDLC_R_NRZ);
main.c(95): warning: #223-D: function "printf" declared implicitly
printf("rcvbuffer= %s\n\r",HDLC_RECEIVEBUFFER_BASE_LO+1); //print received buffer
main.c(99): warning: #223-D: function "printf" declared implicitly
printf("Test 1 Loopback failed\n\r");
main.c: 6 warnings, 0 errors
compiling timers.c...
timers.c(85): warning: #188-D: enumerated type mixed with another type
RTC_ITConfig( RTC_AIR | RTC_GIR, ENABLE );
timers.c: 1 warning, 0 errors
assembling STR71x.s...
linking...
Program Size: Code=10404 RO-data=44 RW-data=20 ZI-data=1740
FromELF: creating hex file...
".\hdlc.axf" - 0 Error(s), 10 Warning(s).
部分报错函数程序如下:
HDLC_Init_Xmit(HDLC_NRZ); //NRZ coding used
//Set up Receiver
HDLC_Init_Recv(HDLC_PAE | HDLC_R_NRZ);
标准库函数如下定义如下:
void HDLC_Init_Xmit(HDLC_TCTL_Flags Flags);
void HDLC_Init_Recv(HDLC_RCTL_Flags Flags);
HDLC_NRZ定义为HDLC_TCOD_ENC枚举类型
HDLC_PAE定义为HDLC_RCTL_Flags枚举类型
HDLC_R_NRZ定义为HDLC_RCOD_ENC枚举类型
这些都是标准库函数,,程序也是官方提供的函数没做任何修改,,
请问这影不影响程序正常工作,,或者改怎么修改 |