1.2.8.8 SYS_INT_SourceIsEnabled Function
C
bool SYS_INT_SourceIsEnabled( INT_SOURCE source )
Summary
Gets the enable/disable status of the specified interrupt source.
Description
This function returns the enable/disable status of the specified interrupt source/line at the interrupt controller level.
Precondition
None.
Parameters
Param | Description |
---|---|
source | Interrupt source/line available at interrupt controller. |
Returns
- true - Interrupt line is enabled.
- false - Interrupt line is disabled.
Example
bool usart0Int = false; usart0Int = SYS_INT_SourceIsEnabled(USART0_IRQn);
Remarks
Unlike SYS_INT_Disable, this function just returns the status and doesn't disable the interrupt line.