...
As in Chapter 14, let's assume that the processor receives an interrupt. Letís also supposed that interrupts are enabled. The processor completes the current instruction and initiates an interrupt handling procedure.
Your ISR then needs to either call OSIntEnter
or, increment the global variable OSIntNesting
by one. At this point, we can assume that the task is suspended and we could, if needed, switch to a different task.
...