ctl_enter/exit_isr on every ISR?
I have been adding ctl_enter_isr and ctl_exit_isr to all ISR handlers. However the following taken from the Rowley on-line documentation suggests that it is only required for ISR that uses CTL services. I assume that refers to an ISR that could call a CTL function (to signal or task switch etc.). Can anyone confirm this?
Interrupt handlers
A Cortex-M3 interrupt handler that uses CTL services should have the following code on entry and exit
void
SysTick_ISR()
{
ctl_enter_isr();
…
// handle interrupt
…
ctl_exit_isr();
}
Please sign in to leave a comment.
Comments
4 comments