#include "sceptre.h"
Go to the source code of this file.
Functions | |
void | irq_vic_init (void) |
bool_t | irq_install (uint32_t number, void *p_handler) |
bool_t | irq_uninstall (uint32_t number) |
Interrupt handler management.
Definition in file irq.c.
bool_t irq_install | ( | uint32_t | number, | |
void * | p_handler | |||
) |
Install interrupt handler.
The maximum VIC size is 16 but there are 32 interrupt request inputs. Not all of them can be installed into the VIC table at the same time. The order of the interrupt request installation is first come, first served.
number | Number of interrupt. | |
p_handler | Address of interrupt handler. |
bool_t irq_uninstall | ( | uint32_t | number | ) |
Uninstall interrupt handler.
Find the interrupt handler installed in the VIC based on the interrupt number, set the location back to NULL to uninstall it.
number | Number of interrupt. |