1.2.8.6 SYS_INT_SourceDisable Function
C
bool SYS_INT_SourceDisable( INT_SOURCE source )
Summary
Disables the specified interrupt source.
Description
This function returns the current interrupt enable/disable status and disables 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 was enabled.
- false - Interrupt line was disabled.
Example
bool usart0Int = false; usart0Int = SYS_INT_SourceDisable(USART0_IRQn);
Remarks
If the corresponding module level interrupts are enabled and triggered, the triggers will be ignored at interrupt controller. For example, USART0 doesn't cause interrupt unless both the interrupt controller source/line and USART0 module level interrupt for TX or RX or Error are enabled.