1.2.8.7 SYS_INT_SourceRestore Function

1.2.8.7 C

void SYS_INT_SourceRestore( INT_SOURCE source, bool status )

1.2.8.7 Summary

Restores an interrupt vector to the state specified in the parameter.

1.2.8.7 Description

This function restores the interrupt vector to the state specified in the parameters.

1.2.8.7 Precondition

SYS_INT_SourceDisable must have been called previously to get the state value.

1.2.8.7 Parameters

ParametersDescription
trueEnable Interrupt Vector
falseDisable Interrupt Vector

1.2.8.7 Returns

None.

1.2.8.7 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 )

1.2.8.7 Remarks

None.