34cf4058 |
1 | #ifndef TYPES_H |
2 | #define TYPES_H |
3 | |
4 | #include <stdint.h> |
5 | |
6 | typedef uint8_t u8; /* unsigned 8-bit */ |
7 | typedef uint16_t u16; /* unsigned 16-bit */ |
8 | typedef uint32_t u32; /* unsigned 32-bit */ |
9 | typedef uint64_t u64; /* unsigned 64-bit */ |
10 | |
11 | typedef int8_t s8; /* signed 8-bit */ |
12 | typedef int16_t s16; /* signed 16-bit */ |
13 | typedef int32_t s32; /* signed 32-bit */ |
14 | typedef int64_t s64; /* signed 64-bit */ |
15 | |
16 | typedef volatile uint8_t vu8; /* unsigned 8-bit */ |
17 | typedef volatile uint16_t vu16; /* unsigned 16-bit */ |
18 | typedef volatile uint32_t vu32; /* unsigned 32-bit */ |
19 | typedef volatile uint64_t vu64; /* unsigned 64-bit */ |
20 | |
21 | typedef volatile int8_t vs8; /* signed 8-bit */ |
22 | typedef volatile int16_t vs16; /* signed 16-bit */ |
23 | typedef volatile int32_t vs32; /* signed 32-bit */ |
24 | typedef volatile int64_t vs64; /* signed 64-bit */ |
25 | |
26 | typedef float f32; /* single prec floating point */ |
27 | typedef double f64; /* double prec floating point */ |
28 | |
29 | #ifndef TRUE |
30 | #define TRUE 1 |
31 | #endif |
32 | |
33 | #ifndef FALSE |
34 | #define FALSE 0 |
35 | #endif |
36 | |
37 | #ifndef NULL |
38 | #define NULL 0 |
39 | #endif |
40 | |
41 | #endif // TYPES_H |
42 | |