1.3.14.4 NVIC_INT_Restore Function
C
bool NVIC_INT_Restore( bool state );
Summary
Enables or Disables all global interrupts based on PRIMASK bit state
Description
This function enables or disables all global interrupts based on the Priority Mask Register (PRIMASK) bit status.
The bit status returned from NVIC_INT_Disable() API should be passed to this function.
-
If the state is true then it enables all the global interrupts
-
If the state is false then it disables all the global interrupts
Precondition
None.
Parameters
Param | Description |
---|---|
state | Specifies whether to enable or disable global interrupts. |
Returns
None.
Example
bool intState = NVIC_INT_Disable(); NVIC_INT_Restore(intState);
Remarks
None.