Skip to main content

Module interrupt

Module interrupt 

Source
Expand description

Interacting with the GBA interrupts.

Structs§

InterruptHandler
An opaque handle for an interrupt.
VBlank
A light weight VBlank handle.

Enums§

Interrupt
All the available interrupts for the GBA.

Functions§

add_interrupt_handler⚠
Adds an interrupt handler as long as the returned value is alive. The closure takes a CriticalSection which can be used for mutexes.
interruptable⚠
This enters a section that enables interrupts. This can be used inside of interrupts or inside a critical section. Naturally, this breaks all sorts of guarantees that a critical section makes. Hence this function is incredibly unsafe.