diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-01 07:54:42 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-01 07:54:42 -0400 |
commit | 9137144cc872024e7bf193b46b755330d66e343f (patch) | |
tree | 191c1c257dfceac54525667d4c620a7eb81e32fd /include | |
parent | 6c3731902319116e8e73b14e2b75d5fd8c9642ff (diff) | |
parent | 90d38f053ff21a5d6cd967de29dc440cbba9aa29 (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond into pikalax_work
Diffstat (limited to 'include')
-rw-r--r-- | include/global.h | 1 | ||||
-rw-r--r-- | include/nitro/os_system.h | 15 |
2 files changed, 3 insertions, 13 deletions
diff --git a/include/global.h b/include/global.h index 33880ca1..ba6a7337 100644 --- a/include/global.h +++ b/include/global.h @@ -1,6 +1,7 @@ #ifndef GUARD_GLOBAL_H #define GUARD_GLOBAL_H +#include "function_target.h" #include "nitro/nitro.h" #endif //GUARD_GLOBAL_H diff --git a/include/nitro/os_system.h b/include/nitro/os_system.h index fc6a2f81..c7f121bd 100644 --- a/include/nitro/os_system.h +++ b/include/nitro/os_system.h @@ -18,18 +18,8 @@ typedef enum { } OSProcMode; typedef enum { - OS_INTRMODE_IRQ_DISABLE = HW_PSR_IRQ_DISABLE, - OS_INTRMODE_IRQ_ENABLE = 0 -} OSIntrMode_Irq; - -typedef enum { - OS_INTRMODE_FIQ_DISABLE = HW_PSR_FIQ_DISABLE, - OS_INTRMODE_FIQ_ENABLE = 0 -} OSIntrMode_Fiq; - -typedef union { - OSIntrMode_Fiq mode_fiq; - OSIntrMode_Irq mode_irq; + OS_INTRMODE_DISABLE = HW_PSR_IRQ_DISABLE, + OS_INTRMODE_ENABLE = 0 } OSIntrMode; OSIntrMode OS_EnableInterrupts(); @@ -37,7 +27,6 @@ OSIntrMode OS_DisableInterrupts(); OSIntrMode OS_RestoreInterrupts(OSIntrMode state); OSIntrMode OS_DisableInterrupts_IrqAndFiq(); OSIntrMode OS_RestoreInterrupts_IrqAndFiq(OSIntrMode state); -OSIntrMode_Irq OS_GetCpsrIrq(); OSProcMode OS_GetProcMode(); |