Nut/OS  5.0.5
API Reference
ih_at91sys.c File Reference
#include <arch/arm.h>
#include <dev/irqreg.h>
Include dependency graph for ih_at91sys.c:

Defines

#define NUT_IRQPRI_SYS   0

Functions

int NutSysIrqEnable (SYSIRQ_HANDLER *sysirq)
 Enable a specified system interrupt.
int NutSysIrqDisable (SYSIRQ_HANDLER *sysirq)
 Disable a specified system interrupt.
int NutRegisterSysIrqHandler (SYSIRQ_HANDLER *sysirq, void(*handler)(void *), void *arg)
 Register a system interrupt handler.

Variables

SYSIRQ_HANDLER syssig_DBGU
SYSIRQ_HANDLER syssig_MC
SYSIRQ_HANDLER syssig_PIT
SYSIRQ_HANDLER syssig_PMC
SYSIRQ_HANDLER syssig_RSTC
SYSIRQ_HANDLER syssig_RTT
SYSIRQ_HANDLER syssig_WDT
IRQ_HANDLER sig_SYS

Define Documentation

#define NUT_IRQPRI_SYS   0

Function Documentation

int NutSysIrqEnable ( SYSIRQ_HANDLER *  sysirq)

Enable a specified system interrupt.

Parameters:
sysirqInterrupt to enable.
Returns:
0 on success, -1 otherwise.

References NULL, and NUT_IRQCTL_ENABLE.

Referenced by NutRegisterTimer().

int NutSysIrqDisable ( SYSIRQ_HANDLER *  sysirq)

Disable a specified system interrupt.

Parameters:
sysirqInterrupt to disable.
Returns:
0 on success, -1 otherwise.

Referenced by NutRegisterSysIrqHandler().

int NutRegisterSysIrqHandler ( SYSIRQ_HANDLER *  sysirq,
void(*)(void *)  handler,
void *  arg 
)

Register a system interrupt handler.

This call will also disable any previously registered handler.

If enabled with NutSysIrqEnable(), the registered handler will be called on every system interrupt. The handler must check, if the interrupt was triggered by the corresponding device.

This function is typically called by device drivers, but applications may also implement their local interrupt handlers.

Parameters:
irqInterrupt to be associated with this handler.
handlerThis routine will be called by Nut/OS, when the specified interrupt occurs.
argArgument to be passed to the interrupt handler.
Returns:
0 on success, -1 otherwise.

References NULL, NUT_IRQCTL_INIT, NutSysIrqDisable(), and rc.

Referenced by NutRegisterTimer().

Here is the call graph for this function:


Variable Documentation

SYSIRQ_HANDLER syssig_DBGU
SYSIRQ_HANDLER syssig_MC
SYSIRQ_HANDLER syssig_PIT

Referenced by NutRegisterTimer().

SYSIRQ_HANDLER syssig_PMC
SYSIRQ_HANDLER syssig_RSTC
SYSIRQ_HANDLER syssig_RTT
SYSIRQ_HANDLER syssig_WDT
Initial value:
 {



    NULL,               
    NULL,               
    SystemIrqCtl 
}