1.2.14.4 1.3.14.4 1.4.12.4 1.5.13.4 1.6.15.4 1.7.16.4 1.8.12.4 1.9.13.4 1.29.14.4 1.30.9.4 1.31.9.4 1.32.15.4 1.33.9.4 1.34.9.4 1.35.7.4 1.36.10.4 1.37.9.4 1.38.12.4 1.39.9.4 1.40.12.4 1.41.11.4 1.42.9.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.