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

irqreg.h File Reference

Interrupt management definitions. More...

#include <sys/device.h>

Go to the source code of this file.

Functions

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


Detailed Description

Interrupt management definitions.


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:54 2003 for EduNet by doxygen1.2.18