mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-24 16:23:56 -05:00
Standarizing usage of libugba interrupt handler instead of tonc in examples and docs
This commit is contained in:
@@ -5,6 +5,11 @@ void interrupt_init(void) {
|
||||
IRQ_Init();
|
||||
}
|
||||
|
||||
void interrupt_add(interrupt_index index, interrupt_vector function) {
|
||||
interrupt_set_handler(index, function);
|
||||
interrupt_enable(index);
|
||||
}
|
||||
|
||||
void interrupt_set_handler(interrupt_index index, interrupt_vector function) {
|
||||
IRQ_SetHandler((irq_index)index, function);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user