KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for managing individual IRQ handlers. More...
Functions | |
int | irq_set_handler (irq_t code, irq_handler hnd, void *data) |
Set or remove an IRQ handler. | |
irq_handler | irq_get_handler (irq_t code) |
Get the address of the current handler for the IRQ type. | |
API for managing individual IRQ handlers.
This API is for managing handlers installed to handle individual IRQ codes.
irq_handler irq_get_handler | ( | irq_t | code | ) |
Get the address of the current handler for the IRQ type.
code | The IRQ type to look up. |
int irq_set_handler | ( | irq_t | code, |
irq_handler | hnd, | ||
void * | data ) |
Set or remove an IRQ handler.
Passing a NULL value for hnd will remove the current handler, if any.
code | The IRQ type to set the handler for (see irq_t). |
hnd | A pointer to a procedure to handle the exception. |
data | A pointer that will be passed along to the callback. |
0 | On success. |
-1 | If the code is invalid. |