中断能够产生。中断初始化 NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1); //组1/*
NVIC_PriorityGroup_1: 1 bits for pre-emption priority
* 3 bits for subpriority
*/
NVIC_InitStructure.NVIC_IRQChannel = EXTI0_IRQChannel;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2; //这里设置为2,会有什么问题?
NVIC_InitStructure.NVIC_IRQChannelSubPriority =1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>