summaryrefslogtreecommitdiff
path: root/arm9/lib/NitroSDK/include/OS_system.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-07-25 13:23:02 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-07-25 13:23:02 -0400
commit5e0e326b75402a36c4d31502b8b5a05b862ac23c (patch)
tree1b5807c1efb72dbdd9d01f329cefb41171913a64 /arm9/lib/NitroSDK/include/OS_system.h
parent1f9d4503c898f9138422215132b53224571a281a (diff)
parent68d7aa47cc52ef822220e0e35890863d7cad479f (diff)
Merge remote-tracking branch 'origin/master' into pikalax_work
Diffstat (limited to 'arm9/lib/NitroSDK/include/OS_system.h')
-rw-r--r--arm9/lib/NitroSDK/include/OS_system.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arm9/lib/NitroSDK/include/OS_system.h b/arm9/lib/NitroSDK/include/OS_system.h
new file mode 100644
index 00000000..37dbbd76
--- /dev/null
+++ b/arm9/lib/NitroSDK/include/OS_system.h
@@ -0,0 +1,18 @@
+#ifndef POKEDIAMOND_ARM9_OS_SYSTEM_H
+#define POKEDIAMOND_ARM9_OS_SYSTEM_H
+
+#include "function_target.h"
+#include "consts.h"
+#include "nitro/OS_system_shared.h"
+
+OSIntrMode OS_EnableInterrupts(void);
+OSIntrMode OS_DisableInterrupts(void);
+OSIntrMode OS_RestoreInterrupts(OSIntrMode state);
+OSIntrMode OS_DisableInterrupts_IrqAndFiq(void);
+OSIntrMode OS_RestoreInterrupts_IrqAndFiq(OSIntrMode state);
+OSIntrMode OS_GetCpsrIrq(void);
+OSProcMode OS_GetProcMode(void);
+void OS_SpinWait(u32 cycles);
+void OS_WaitVBlankIntr(void);
+
+#endif //POKEDIAMOND_ARM9_OS_SYSTEM_H