2.58.5 INTC_SourceDisable Function

C

void INTC_SourceDisable( INT_SOURCE source );

Summary

Disables the interrupt source.

Description

This function disables the given interrupt source.

This API performs a Read-Modify-Write (RMW) operation on the IECx register. To prevent race conditions, please disable global interrupts using INTCDisab API before calling this function.

Precondition

INTC_Initialize() function must have been called first.

Parameters

ParamDescription
sourceOne of the possible values from INT_SOURCE.

Returns

None.

Example

 bool prevStatus = INTC_Disable();
 INTC_SourceDisable(INT_SOURCE_INT0);
 INTC_Restore(prevStatus);

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.