|
libteak
|
ICU helpers. More...
#include <teak/types.h>Functions | |
| void | icuInit (void) |
| Initialize ICU unit and disable all interrupts. | |
| void | icuIrqDisable (u16 mask) |
| Disable a peripheral IRQ. | |
| void | icuIrqSetup (u16 mask, int index) |
| Route a peripheral IRQ to a CPU IRQ. | |
ICU helpers.
The ICU helpers allow the developer to route peripheral interrupts (APBP, DMA, etc) to CPU interrupts 0 to 2.
| void icuIrqDisable | ( | u16 | mask | ) |
Disable a peripheral IRQ.
| mask | Interrupt mask. For example, ICU_IRQ_MASK_APBP. |
| void icuIrqSetup | ( | u16 | mask, |
| int | index | ||
| ) |
Route a peripheral IRQ to a CPU IRQ.
The interrupt is setup as edge-triggered and normal polarity.
| mask | Interrupt mask. For example, ICU_IRQ_MASK_APBP. |
| index | CPU interrupt to be triggered for the specified mask (0 to 2). |