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];试试
---------------------------------
这里面主要是数据的强制转换问题,如果明白了数据的类型,做起来就好了
第一步:找到你文件夹里的“user”
第二步:找到user里的stm32f10x_conf.h
第三步:把//include"stm32f10x_tim.h"前边的"//"给去掉
小弟不才,大家共同学习,共同进步。。。
---------------------------------
66666666666666666666666666666666666
谢谢~
一周热门 更多>