
STM32中的NVIC_Configuration要加什么头文件? 10
我自己编辑的NVIC_Configuration和EXTI_PE5_Config函数,编译后显示如下错误:main.c(30):warning:#223-D:functi...
我自己编辑的NVIC_Configuration和EXTI_PE5_Config函数,编译后显示如下错误:main.c(30): warning: #223-D: function "EXTI_PE5_Config" declared implicitlyexti.c(27): error: #20: identifier "NVIC_InitTypeDef" is undefinedexti.c(30): warning: #223-D: function "NVIC_PriorityGroupConfig" declared implicitlyexti.c(30): error: #20: identifier "NVIC_PriorityGroup_1" is undefinedexti.c(33): error: #20: identifier "EXTI9_5_IRQn" is undefinedexti.c(36): error: #20: identifier "ENABLE" is undefinedexti.c(37): warning: #223-D: function "NVIC_Init" declared implicitlyexti.c(49): error: #20: identifier "GPIO_InitTypeDef" is undefinedexti.c(50): error: #20: identifier "EXTI_InitTypeDef" is undefinedexti.c(53): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitlyexti.c(53): error: #20: identifier "RCC_APB2Periph_GPIOE" is undefinedexti.c(53): error: #20: identifier "RCC_APB2Periph_AFIO" is undefinedexti.c(53): error: #20: identifier "ENABLE" is undefinedexti.c(59): error: #20: identifier "GPIO_Pin_5" is undefinedexti.c(60): error: #20: identifier "GPIO_Mode_IPD" is undefinedexti.c(61): warning: #223-D: function "GPIO_Init" declared implicitlyexti.c(61): error: #20: identifier "GPIOE" is undefinedexti.c(64): warning: #223-D: function "GPIO_EXTILineConfig" declared implicitlyexti.c(64): error: #20: identifier "GPIO_PortSourceGPIOE" is undefinedexti.c(64): error: #20: identifier "GPIO_PinSource5" is undefined求解释!!
展开
展开全部
调用库函数
比如
void NVIC_Configuration(void)
{
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x20000000 */
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
#endif
}
NVIC_SetVectorTable和NVIC_SetVectorTable才是库函数
比如
void NVIC_Configuration(void)
{
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x20000000 */
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
#endif
}
NVIC_SetVectorTable和NVIC_SetVectorTable才是库函数
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询