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

include/dev/irqreg.h File Reference


Detailed Description

Interrupt management definitions.


Data Structures

struct  IRQ_HANDLER

Functions

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


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/