EXTI15_10_IRQHandler中EXTI10 、EXTI11、EXTI12、EXTI13、EXTI14、EXTI15的这几个中断事件的中断函数都通过EXTI15_10_IRQHandler进入的,我现在请教我怎么设置EXTI10 、EXTI11、EXTI12、EXTI13、EXTI14、EXTI15的中断优先级呢?通过如下程序感觉设置的EXTI10 、EXTI11、EXTI12、EXTI13、EXTI14、EXTI15中断级别是一样的,但是我想区别设置高低优先级的,这个怎么操作啊?请高手指导,谢谢。
/* Enable EXTI Interrupt to the highest priority */
NVIC_InitStructure.NVIC_IRQChannel = EXTI15_10_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
|