1.2.8.7 SYS_INT_SourceRestore Function
C
void SYS_INT_SourceRestore( INT_SOURCE source, bool status )
Summary
Restores an interrupt vector to the state specified in the parameter.
Description
This function restores the interrupt vector to the state specified in the parameters.
Precondition
SYS_INT_SourceDisable must have been called previously to get the state value.
Parameters
Param | Description |
---|---|
- true | Enable Interrupt Vector |
- false | Disable Interrupt Vector |
Returns
None.
Example
bool status;
// Save interrupt vector state and disable interrupt
status = SYS_INT_SourceDisable( aSrcId );
// Critical Section
// Restore interrupt vector state
SYS_INT_SourceRestore( aSrcId, status )
Remarks
None.