hdo  beta
Funkce
Dokumentace souboru /home/mrazik/Documents/web/old/hdo/at91lib/peripherals/aic/aic.h
#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)

Detailní popis

Purpose

Methods and definitions for configuring interrupts using the Advanced Interrupt Controller (AIC).

Usage

  1. Configure an interrupt source using AIC_ConfigureIT
  2. Enable or disable interrupt generation of a particular source with AIC_EnableIT and AIC_DisableIT.
Poznámka:
Most of the time, peripheral interrupts must be also configured inside the peripheral itself.

Definice v souboru aic.h.


Dokumentace funkcí

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().

Parametry:
sourceInterrupt source to configure.
modeTriggering mode and priority of the interrupt.
handlerInterrupt handler function.

Definice je uvedena na řádku 54 v souboru aic.c.

void AIC_DisableIT ( unsigned int  source)

Disables interrupts coming from the given (unique) source (AT91C_ID_xxx).

Parametry:
sourceInterrupt source to enable.

Definice je uvedena na řádku 83 v souboru aic.c.

void AIC_EnableIT ( unsigned int  source)

Enables interrupts coming from the given (unique) source (AT91C_ID_xxx).

Parametry:
sourceInterrupt source to enable.

Definice je uvedena na řádku 74 v souboru aic.c.