stm32 the interrupt priority

1) interrupt divided into: natural priority, preemptive priority, response priorities.

2) preemption priority and in response to the priority, in fact, a two interrupt priority included, wherein the former is divided between preemption priority level, which is the same priority preemption priority division.

    A interrupt preemption priority higher than B, then A can interrupt the B trigger inside, ignoring the response priorities;

 

    A and B occupy the same priority, then A, B in response to the priority determining who should respond;

 

    A and B preemption priority and priority response are consistent, then who should come who would first deal, or if the simultaneous decision by the natural priority. Natural priority data sheet NVIC vector table can be queried.

 

    If there is more of the same preemption priority interrupt, then they will not interrupt each other, but they follow the line will follow the response priority queuing. So in other words, during the first execution of the interrupt is not finished, the subsequent response of the highest priority is placed in the highest position to wait for treatment;

 

    First, if the two interrupt preemption priority and the priority of the response is the same, then whichever occurs first break on the first execution; second, high-priority preemption priority can interrupt an ongoing low preemption priority level interrupt. The same preemption priority interrupts, high priority response priority interrupt can not be interrupted in response to low priority. No nested relationship between preemptive same priority level interrupt source

3) interrupt function Description a visible record:

 https://www.cnblogs.com/anSn/p/11619048.html

Guess you like

Origin www.cnblogs.com/anSn/p/11620920.html