Kinetis SDK v.1.3 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
The Kinetis SDK Interrupt Manager provides a set of API/services to configure the Interrupt Controller (NVIC). More...
Files | |
file | fsl_interrupt_manager.h |
Enumerations | |
enum | interrupt_status_t |
interrupt status return codes. More... | |
interrupt_manager APIs | |
void * | INT_SYS_InstallHandler (IRQn_Type irqNumber, void(*handler)(void)) |
Installs an interrupt handler routine for a given IRQ number. More... | |
static void | INT_SYS_EnableIRQ (IRQn_Type irqNumber) |
Enables an interrupt for a given IRQ number. More... | |
static void | INT_SYS_DisableIRQ (IRQn_Type irqNumber) |
Disables an interrupt for a given IRQ number. More... | |
void | INT_SYS_EnableIRQGlobal (void) |
Enables system interrupt. More... | |
void | INT_SYS_DisableIRQGlobal (void) |
Disable system interrupt. More... | |
enum interrupt_status_t |
void* INT_SYS_InstallHandler | ( | IRQn_Type | irqNumber, |
void(*)(void) | handler | ||
) |
This function lets the application register/replace the interrupt handler for a specified IRQ number. The IRQ number is different than the vector number. IRQ 0 starts from the vector 16 address. See a chip-specific reference manual for details and the startup_MKxxxx.s file for each chip family to find out the default interrupt handler for each device. This function converts the IRQ number to the vector number by adding 16 to it.
irqNumber | IRQ number |
handler | Interrupt handler routine address pointer |
|
inlinestatic |
This function enables the individual interrupt for a specified IRQ number. It calls the system NVIC API to access the interrupt control register. The input IRQ number does not include the core interrupt, only the peripheral interrupt, from 0 to a maximum supported IRQ.
irqNumber | IRQ number |
|
inlinestatic |
This function enables the individual interrupt for a specified IRQ number. It calls the system NVIC API to access the interrupt control register.
irqNumber | IRQ number |
void INT_SYS_EnableIRQGlobal | ( | void | ) |
This function enables the global interrupt by calling the core API.
void INT_SYS_DisableIRQGlobal | ( | void | ) |
This function disables the global interrupt by calling the core API.