1.2.8.4 SYS_INT_Restore Function

1.2.8.4 C

void SYS_INT_Restore( bool state )

1.2.8.4 Summary

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

1.2.8.4 Description

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

1.2.8.4 Precondition

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

1.2.8.4 Parameters

ParametersDescription
trueEnable Global Interrupt
falseDisable Global Interrupt

1.2.8.4 Returns

None.

1.2.8.4 Example

bool interruptState;

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

// Critical Section

// Restore interrupt state
SYS_INT_Restore(interruptState)

1.2.8.4 Remarks

None.