diff options
author | red031000 <rubenru09@aol.com> | 2020-05-07 19:16:27 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-05-07 19:16:27 +0100 |
commit | be09adbcb7e47bbc0ccc3994fe405b72cf2a59c6 (patch) | |
tree | f803d972c2825e69547aedf74085e355b4d09377 /arm9/lib/include/OS_interrupt.h | |
parent | c8255e7f323a58625992973f9777a9928947f310 (diff) |
partial OS_interrupt
Diffstat (limited to 'arm9/lib/include/OS_interrupt.h')
-rw-r--r-- | arm9/lib/include/OS_interrupt.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_interrupt.h b/arm9/lib/include/OS_interrupt.h new file mode 100644 index 00000000..acac12aa --- /dev/null +++ b/arm9/lib/include/OS_interrupt.h @@ -0,0 +1,28 @@ +// +// Created by red031000 on 2020-05-07. +// + +#ifndef POKEDIAMOND_OS_INTERRUPT_H +#define POKEDIAMOND_OS_INTERRUPT_H + +#include "types.h" + +typedef void (*OSIrqFunction) (void); + +typedef struct +{ + void (*func) (void *); + u32 enable; + void* arg; +} OSIrqCallbackInfo; + +typedef u32 OSIrqMask; + +extern OSIrqFunction OS_IRQTable[]; +extern OSIrqCallbackInfo OSi_IrqCallbackInfo[7+1]; + +void OS_InitIrqTable(); +void OS_SetIrqFunction(OSIrqMask intrBit, OSIrqFunction function); +OSIrqFunction OS_GetIrqFunction(OSIrqMask intrBit); + +#endif //POKEDIAMOND_OS_INTERRUPT_H |