hdo
beta
|
#include <board.h>
Zobrazit zdrojový text tohoto souboru.
Funkce | |
void | AIC_ConfigureIT (unsigned int source, unsigned int mode, void(*handler)(void)) |
void | AIC_EnableIT (unsigned int source) |
void | AIC_DisableIT (unsigned int source) |
Purpose
Methods and definitions for configuring interrupts using the Advanced Interrupt Controller (AIC).
Usage
Definice v souboru aic.h.
void AIC_ConfigureIT | ( | unsigned int | source, |
unsigned int | mode, | ||
void(*)(void) | handler | ||
) |
Configures an interrupt in the AIC. The interrupt is identified by its source (AT91C_ID_xxx) and is configured to use the specified mode and interrupt handler function. Mode is the value that will be put in AIC_SMRx and the function address will be set in AIC_SVRx. The interrupt is disabled before configuration, so it is useless to do it before calling this function. When AIC_ConfigureIT returns, the interrupt will always be disabled and cleared; it must be enabled by a call to AIC_EnableIT().
source | Interrupt source to configure. |
mode | Triggering mode and priority of the interrupt. |
handler | Interrupt handler function. |
void AIC_DisableIT | ( | unsigned int | source | ) |
void AIC_EnableIT | ( | unsigned int | source | ) |