osLeaveISR Function
Declaration:
INLINE void osLeaveISR(
  BOOL PrevISRState
);
Parameters:
PrevISRState

The status value returned by the osEnterISR function.

Description:

When an interrupt occurs, the interrupt service routine (ISR) is executed. The kernel initially treats the ISR code as part of the context of the interrupted task until the osEnterISR function is invoked. This call explicitly marks the beginning of the interrupt handler context. If any system operations performed within this section require the scheduler, their execution will be deferred until the corresponding osLeaveISR function is called. In the case of nested interrupts, the deferred scheduler will be executed only when the final, outermost osLeaveISR call is performed.

Version:1.0
Header file:OS_API.h
See also: BOOL, FALSE, interrupts, osEnterISR, TRUE
SpaceShadow documentation