First page Back Continue Last page Graphics
Interrupt Routine Rules
Interrupt routines in RTOS must follow two rules that do not apply to task code:
- An interrupt routine must not call any RTOS functions that might block.
- could block the highest priority task
- might not reset the hardware or allow further interrupts
- An interrupt routine must not call any RTOS function that might cause the RTOS to switch tasks
- causing a higher priority task to run may cause the interrupt routine to take a very long time to complete.