1.17.7.5 EVIC_SourceStatusGet Function
C
bool EVIC_SourceStatusGet( INT_SOURCE source )
Summary
Returns the status of the interrupt flag for the selected source.
Description
This function returns the status of the interrupt flag for the selected source. The flag is set when the interrupt request is recognized. The pending interrupt request will not cause further processing if the interrupt is not enabled using the function EVIC_SourceEnable or if interrupts are not enabled.
Precondition
EVIC_Initialize() function must have been called first.
Parameters
Param | Description |
---|---|
source | One of the possible values from INT_SOURCE. |
Returns
-
true: If the interrupt request is recognized for the source - false: If the interrupt request is not recognized for the source
Example
if(EVIC_SourceStatusGet(INT_SOURCE_CORE_TIMER) != true) { EVIC_SourceStatusClear(INT_SOURCE_CORE_TIMER); }
Remarks
This function implements an operation of the SourceFlag feature. This feature may not be available on all devices. Please refer to the specific device data sheet to determine availability.