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

dev/irqreg.h File Reference

Interrupt management definitions. More...


Data Structures

struct  IRQ_HANDLER

Functions

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

int NutRegisterIrqHandler (IRQ_HANDLER *irh, void(*handler)(void *), void *arg)
 Register an interrupt handler.


Detailed Description

Interrupt management definitions.


Function Documentation

int NutRegisterIrqHandler IRQ_HANDLER *    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.


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/