extern int request_RTirq
(unsigned int irq, void (*handler)(void));
  
return to index
  

SYNOPSIS

#include "rtl_fifo.h"
 

DESCRIPTION

Installs handler as an interrupt service routine for IRQ level irq.
handler is then invoked whenever interrupt number irq occurs. The interrupt service routine can be uninstalled using free_RTirq.

RETURN VALUE

On success, 0 is returned. On failure, a negative value is returned .

ERRORS

irq is not a valid IRQ number.
handler is NULL
irq already has a handler. You must first call free_RTirq. to make the IRQ available


extern int free_RTirq

(unsigned int irq);
  
return to index
  

SYNOPSIS

#include "rtl_fifo.h"
 

DESCRIPTION

Uninstalls an interrupt service routine previously installed with a call to request_RTirq.

RETURN VALUE

None

ERRORS

None