Functions | |
void | int_connect (irq_t irq, void(*isr)(void *), void *arg) |
void | int_enable (irq_t irq) |
void | int_disable (irq_t irq) |
void | int_lock (void) |
void | int_unlock (void) |
void int_connect | ( | irq_t | irq, |
void(*)(void *) | isr, | ||
void * | arg | ||
) |
Connects the function isr as the Interrupt Service Routine for the interrupt specified by irq. The ISR will be called with the parameter arg when the interrupt is raised.
The arg parameter is normally used to let one ISR service several devices of the same type.
irq | Interrupt to be serviced |
isr | Interrupt service routine |
arg | Sent as argument to ISR |
void int_disable | ( | irq_t | irq | ) |
Disables the interrupt specified by irq.
irq | Interrupt to disable |
void int_enable | ( | irq_t | irq | ) |
Enables the interrupt specified by irq.
irq | Interrupt to enable |
void int_lock | ( | void | ) |
Globally disables all maskable interrupts.
void int_unlock | ( | void | ) |
Globally enables all maskable interrupts.