Standarizing usage of libugba interrupt handler instead of tonc in examples and docs

This commit is contained in:
Rodrigo Alfonso
2025-01-12 09:14:09 -03:00
parent d688241275
commit 532c178c02
30 changed files with 92 additions and 133 deletions

View File

@@ -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);
}