summaryrefslogtreecommitdiff
path: root/nitro/types.h
diff options
context:
space:
mode:
authorMartmists <martmists@gmail.com>2020-04-12 00:16:52 +0200
committerMartmists <martmists@gmail.com>2020-04-12 00:16:52 +0200
commitce65297980c88ab8acd2ac95df14d427ca734dbd (patch)
treeb7d4c1bc091872bdc487e5fbeb9023dc1e651496 /nitro/types.h
parent01801ea04f2a03a1fb9e9a6e08bcd00fa22a73c0 (diff)
Add *.nds to gitignore, start working on Nitro OS functions
Diffstat (limited to 'nitro/types.h')
-rw-r--r--nitro/types.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/nitro/types.h b/nitro/types.h
index 327dd01a..d702de23 100644
--- a/nitro/types.h
+++ b/nitro/types.h
@@ -1,10 +1,6 @@
#ifndef POKEDIAMOND_NITRO_TYPES_H
#define POKEDIAMOND_NITRO_TYPES_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef unsigned char u8;
typedef unsigned short int u16;
typedef unsigned long u32;
@@ -41,8 +37,14 @@ typedef int BOOL;
#endif // __cplusplus
#endif
-#ifdef __cplusplus
-};
-#endif
+typedef enum {
+ OS_PROCMODE_USER=16,
+ OS_PROCMODE_FIQ=17,
+ OS_PROCMODE_IRQ=18,
+ OS_PROCMODE_SVC=19,
+ OS_PROCMODE_ABORT=23,
+ OS_PROCMODE_UNDEF=27,
+ OS_PROCMODE_SYS=31
+} OSProcMode;
#endif //POKEDIAMOND_NITRO_TYPES_H