1.14.9.4 EVIC_SourceIsEnabled Function

C

bool EVIC_SourceIsEnabled( INT_SOURCE source )

Summary

Gets the enable state of the interrupt source.

Description

This function gets the enable state of the interrupt source.

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 source is enabled

  • false: If the interrupt source is disabled

Example

if(EVIC_SourceIsEnabled(INT_SOURCE_CORE_TIMER) != true)
{
    EVIC_SourceEnable(INT_SOURCE_CORE_TIMER);
}

Remarks

This function implements an operation of the SourceControl feature. This feature may not be available on all devices. Please refer to the specific device data sheet to determine availability.