2.58.13 INTC_Restore Function

C

void INTC_Restore( bool state )

Summary

Restores the state of global interrupts before the disable occurred.

Description

This function restores the state of global interrupts to the specified state that was saved prior to the disable operation. This is typically used to re-enable interrupts after they were temporarily disabled.

Precondition

The state must be previously saved using the INTC_Disable() function.

Parameters

state - The interrupt status to restore, typically obtained from the INTC_Disable() function.

Returns

None.

Example

 bool prevStatus = INTC_Disable();
 INTC_SourceEnable(INT_SOURCE_INT0);
 INTC_Restore(prevStatus);

Remarks

None.