1.10.10.4 1.11.10.4 1.12.10.4 1.13.9.4 1.14.9.4 1.15.9.4 1.16.7.4 1.17.7.4 1.18.8.4 1.19.7.4 1.20.7.4 1.21.8.4 1.22.11.4 1.23.11.4 1.24.10.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.