Build target 'key1'
compiling bsp_breathing.c...
..\..\User\breathinglight\bsp_breathing.c(52): error: #20: identifier "NVIC_InitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(55): warning: #223-D: function "NVIC_PriorityGroupConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(55): error: #20: identifier "NVIC_PriorityGroup_1" is undefined
..\..\User\breathinglight\bsp_breathing.c(62): warning: #223-D: function "NVIC_Init" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(84): error: #20: identifier "TIM_TimeBaseInitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(85): error: #20: identifier "TIM_OCInitTypeDef" is undefined
..\..\User\breathinglight\bsp_breathing.c(93): error: #20: identifier "TIM_CKD_DIV1" is undefined
..\..\User\breathinglight\bsp_breathing.c(94): error: #20: identifier "TIM_CounterMode_Up" is undefined
..\..\User\breathinglight\bsp_breathing.c(95): warning: #223-D: function "TIM_TimeBaseInit" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(98): error: #20: identifier "TIM_OCMode_PWM1" is undefined
..\..\User\breathinglight\bsp_breathing.c(99): error: #20: identifier "TIM_OutputState_Enable" is undefined
..\..\User\breathinglight\bsp_breathing.c(101): error: #20: identifier "TIM_OCPolarity_Low" is undefined
..\..\User\breathinglight\bsp_breathing.c(103): warning: #223-D: function "TIM_OC3Init" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(106): warning: #223-D: function "TIM_OC3PreloadConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(106): error: #20: identifier "TIM_OCPreload_Enable" is undefined
..\..\User\breathinglight\bsp_breathing.c(108): warning: #223-D: function "TIM_ARRPreloadConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(111): warning: #223-D: function "TIM_Cmd" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(113): warning: #223-D: function "TIM_ITConfig" declared implicitly
..\..\User\breathinglight\bsp_breathing.c(113): error: #20: identifier "TIM_IT_Update" is undefined
Target not created
当我把呼吸灯程序和按键程序拼装在一起的时候 出现这个状况 在user文件夹里面我也添加了bsp_breathing.c
在c++那个调试里面 我也添加了这个目录 但就是不知道怎么回事 希望大神帮帮小弟 小弟是新手。万分感谢 |