1.2.8.4 SYS_INT_Restore Function

C

void SYS_INT_Restore( bool state )

Summary

Restores the interrupt controller to the state specified in the parameter.

Description

This function restores the interrupt controller to the state specified in the parameters.

Precondition

SYS_INT_Disable must have been called to get previous state of the global interrupt.

Parameters

ParamDescription
- trueEnable Global Interrupt
- falseDisable Global Interrupt

Returns

None.

Example

bool interruptState;

// Save global interrupt state and disable interrupt
interruptState = SYS_INT_Disable();

// Critical Section

// Restore interrupt state
SYS_INT_Restore(interruptState)

Remarks

None.