Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

XgIrqReg


Data Structures

struct  IRQ_HANDLER

Functions

int NutRegisterInterrupt (int irq, void(*handler)(void *), void *arg)
 Register an interrupt handler.


Function Documentation

int NutRegisterInterrupt int    irq,
void(*    handler)(void *),
void *    arg
 

Register an interrupt handler.

This function is typically called by device drivers.

Parameters:
irq  Interrupt number to be associated with this handler.
handler  This routine will be called by Nut/OS, when the specified interrupt occurs.
arg  Argument to be passed to the interrupt handler.
Returns:
0 on success, -1 otherwise.


Generated on Thu Jan 30 22:30:57 2003 for EduNet by doxygen1.2.18