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

ParamDescription
- trueEnable Interrupt Vector
- falseDisable 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.