summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_system.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-05-01 16:04:18 -0400
committerGitHub <noreply@github.com>2020-05-01 16:04:18 -0400
commitce558d0870e8b8ceb626ee8a6f165e8be9869ede (patch)
treea002ab92671fdf9736179b9b1d818b6da9c398d2 /arm9/lib/include/OS_system.h
parentdb2a8afd2f3c5e2a38083a3dc47d65e7848f0fd2 (diff)
parent527b257015fa32ac4007b1d7e9198ac37d8e1542 (diff)
Merge pull request #52 from red031000/master
remove include/nitro and shift everything to arm9/lib
Diffstat (limited to 'arm9/lib/include/OS_system.h')
-rw-r--r--arm9/lib/include/OS_system.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arm9/lib/include/OS_system.h b/arm9/lib/include/OS_system.h
index c7f121bd..93903315 100644
--- a/arm9/lib/include/OS_system.h
+++ b/arm9/lib/include/OS_system.h
@@ -17,17 +17,22 @@ typedef enum {
OS_PROCMODE_SYS=31
} OSProcMode;
+ENUMS_ALWAYS_INT_ON
typedef enum {
- OS_INTRMODE_DISABLE = HW_PSR_IRQ_DISABLE,
+ OS_INTRMODE_DISABLE_IRQ = HW_PSR_DISABLE_IRQ,
+ OS_INTRMODE_DISABLE_FIQ = HW_PSR_DISABLE_FIQ,
OS_INTRMODE_ENABLE = 0
} OSIntrMode;
+ENUMS_ALWAYS_INT_RESET
OSIntrMode OS_EnableInterrupts();
OSIntrMode OS_DisableInterrupts();
OSIntrMode OS_RestoreInterrupts(OSIntrMode state);
OSIntrMode OS_DisableInterrupts_IrqAndFiq();
OSIntrMode OS_RestoreInterrupts_IrqAndFiq(OSIntrMode state);
+OSIntrMode OS_GetCpsrIrq();
OSProcMode OS_GetProcMode();
-
+void OS_SpinWait();
+void OS_WaitVBlankIntr();
#endif //POKEDIAMOND_OS_SYSTEM_H