void NVIC_init()
{
#ifdef VECT_TAB_RAM
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0); //向量表位于RAM
#else
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0); //向量表位于FLASH
#endif
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
NVIC_InitStructure.NVIC_IRQChannel = EX
ti9_5_IRQChannel ;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; //抢占优先级
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; //从优先级
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
这是我写的一个NVIC配置的函数,但是工程写完了以后
NVIC_InitStructure.NVIC_IRQChannel = EXTI9_5_IRQChannel ;这句总是报错Appmain.c(91): error: #20: identifier "EXTI9_5_IRQChannel" is undefined的未定义错误,我怀疑是固件库手册搞错了,因为碰见过这样的问题,比如 NVIC_Init(&NVIC_InitStructure); 这句,固件库就是错误的 NVIC_InitStructure(&NVIC_InitStructure); ,不知道有没有朋友遇到过中断配置出错的问题?