编译显示:
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);