INLINE BOOL osEnterISR(void);
A value to be passed to osLeaveISR when exiting the interrupt service routine.
When an interrupt occurs and the interrupt service routine (ISR) begins execution, the kernel initially treats the ISR code as part of the context of the interrupted task until the osEnterISR function is invoked. This function explicitly marks the transition into the interrupt handler context. If any system operations performed within this section necessitate a call to the scheduler, the scheduling operation will be deferred until the corresponding call to osLeaveISR. In the case of nested interrupts, the deferred scheduler will only be executed once the final osLeaveISR call for the outermost interrupt is performed.
| Version: | 1.0 |
|---|---|
| Header file: | OS_API.h |
| See also: | BOOL, FALSE, interrupts, osLeaveISR, TRUE |