Build target 'Target 1'
compiling timer.c...
..HARDWARETIMER imer.c(23): error: #20: identifier "TIM_TimeBaseInitTypeDef" is undefined
..HARDWARETIMER imer.c(31): error: #20: identifier "TIM_CKD_DIV1" is undefined
..HARDWARETIMER imer.c(32): error: #20: identifier "TIM_CounterMode_Up" is undefined
..HARDWARETIMER imer.c(33): warning: #223-D: function "TIM_TimeBaseInit" declared implicitly
..HARDWARETIMER imer.c(35): warning: #223-D: function "TIM_ITConfig" declared implicitly
..HARDWARETIMER imer.c(35): error: #20: identifier "TIM_IT_Update" is undefined
..HARDWARETIMER imer.c(45): warning: #223-D: function "TIM_Cmd" declared implicitly
..HARDWARETIMER imer.c(50): warning: #223-D: function "TIM_GetITStatus" declared implicitly
..HARDWARETIMER imer.c(50): error: #20: identifier "TIM_IT_Update" is undefined
..HARDWARETIMER imer.c(52): warning: #223-D: function "TIM_ClearITPendingBit" declared implicitly
Target not created
求大神指教啊
---------------------------------
USART_RX_BUF[2],这是u8类型的吧。。。
改成:Res=(u16)USART_RX_BUF[2]<<8+USART_RX_BUF[3];试试
一周热门 更多>