-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtypes.h
62 lines (48 loc) · 1.23 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef NITRO_TYPES_H_
#define NITRO_TYPES_H_
#ifndef SDK_ASM
typedef unsigned char u8;
typedef unsigned short int u16;
typedef unsigned long u32;
typedef signed char s8;
typedef signed short int s16;
typedef signed long s32;
typedef unsigned long long int u64;
typedef signed long long int s64;
typedef volatile u8 vu8;
typedef volatile u16 vu16;
typedef volatile u32 vu32;
typedef volatile u64 vu64;
typedef volatile s8 vs8;
typedef volatile s16 vs16;
typedef volatile s32 vs32;
typedef volatile s64 vs64;
typedef float f32;
typedef volatile f32 vf32;
typedef u8 REGType8;
typedef u16 REGType16;
typedef u32 REGType32;
typedef u64 REGType64;
typedef vu8 REGType8v;
typedef vu16 REGType16v;
typedef vu32 REGType32v;
typedef vu64 REGType64v;
typedef int BOOL;
#endif
#define TRUE 1
#define FALSE 0
#ifndef SDK_ASM
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else // __cplusplus
#define NULL ((void *)0)
#endif // __cplusplus
#endif
#define SDK_FORCE_EXPORT __declspec(force_export)
#endif //SDK_ASM
#define HW_REG_BASE 0x04000000
#define REG_IME_OFFSET 0x208
#define REG_IME_ADDR (HW_REG_BASE + REG_IME_OFFSET)
#define reg_OS_IME (*(REGType16v *)REG_IME_ADDR)
#endif //NITRO_TYPES_H_