mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-09-09 01:16:53 -05:00
Removing duplicated files
This commit is contained in:
22
examples/_lib/interrupt.cpp
Normal file
22
examples/_lib/interrupt.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "interrupt.h"
|
||||
#include <ugba.h>
|
||||
|
||||
void interrupt_init(void) {
|
||||
IRQ_Init();
|
||||
}
|
||||
|
||||
void interrupt_set_handler(interrupt_index index, interrupt_vector function) {
|
||||
IRQ_SetHandler((irq_index)index, function);
|
||||
}
|
||||
|
||||
void interrupt_enable(interrupt_index index) {
|
||||
IRQ_Enable((irq_index)index);
|
||||
}
|
||||
|
||||
void interrupt_disable(interrupt_index index) {
|
||||
IRQ_Disable((irq_index)index);
|
||||
}
|
||||
|
||||
void interrupt_set_reference_vcount(unsigned long y) {
|
||||
IRQ_SetReferenceVCOUNT(y);
|
||||
}
|
||||
Reference in New Issue
Block a user