libdragon
|
Interrupt Controller. More...
Go to the source code of this file.
Enumerations | |
enum | interrupt_state_t { INTERRUPTS_UNINITIALIZED, INTERRUPTS_DISABLED, INTERRUPTS_ENABLED } |
State of interrupts on the system. More... | |
Functions | |
void | register_AI_handler (void(*callback)()) |
Register an AI callback. | |
void | register_VI_handler (void(*callback)()) |
Register a VI callback. | |
void | register_PI_handler (void(*callback)()) |
Register a PI callback. | |
void | register_DP_handler (void(*callback)()) |
Register a DP callback. | |
void | register_TI_handler (void(*callback)()) |
Register a TI callback. | |
void | register_SI_handler (void(*callback)()) |
Register a SI callback. | |
void | register_SP_handler (void(*callback)()) |
Register a SP callback. | |
void | unregister_AI_handler (void(*callback)()) |
Unregister an AI callback. | |
void | unregister_VI_handler (void(*callback)()) |
Unregister a VI callback. | |
void | unregister_PI_handler (void(*callback)()) |
Unegister a PI callback. | |
void | unregister_DP_handler (void(*callback)()) |
Unregister a DP callback. | |
void | unregister_TI_handler (void(*callback)()) |
Unegister a TI callback. | |
void | unregister_SI_handler (void(*callback)()) |
Unegister a SI callback. | |
void | unregister_SP_handler (void(*callback)()) |
Unegister a SP callback. | |
void | set_AI_interrupt (int active) |
Enable or disable the AI interrupt. | |
void | set_VI_interrupt (int active, unsigned long line) |
Enable or disable the VI interrupt. | |
void | set_PI_interrupt (int active) |
Enable or disable the PI interrupt. | |
void | set_DP_interrupt (int active) |
Enable or disable the DP interrupt. | |
void | set_SI_interrupt (int active) |
Enable or disable the SI interrupt. | |
void | set_SP_interrupt (int active) |
Enable or disable the SP interrupt. | |
void | init_interrupts () |
Initialize the interrupt controller. | |
void | enable_interrupts () |
Enable interrupts systemwide. | |
void | disable_interrupts () |
Disable interrupts systemwide. | |
interrupt_state_t | get_interrupts_state () |
Return the current state of interrupts. |
Interrupt Controller.