STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Platform_Types.h
Go to the documentation of this file.
1
10#ifndef PLATFORM_TYPES_H
11#define PLATFORM_TYPES_H
12
13#include <stdbool.h>
14
22#define CPU_TYPE_8 8
23#define CPU_TYPE_16 16
24#define CPU_TYPE_32 32
25#define CPU_TYPE_64 64
27
28
37#define MSB_FIRST 0
38#define LSB_FIRST 1
40
41
49#define HIGH_BYTE_FIRST 0
50#define LOW_BYTE_FIRST 1
52
53
63#define CPU_TYPE CPU_TYPE_32
64#define CPU_BIT_ORDER LSB_FIRST
65#define CPU_BYTE_ORDER LOW_BYTE_FIRST
67
75#ifndef TRUE
76#define TRUE 1
77#endif
78
79#ifndef FALSE
80#define FALSE 0
81#endif
83
93typedef bool boolean;
94typedef unsigned char uint8;
96typedef unsigned short uint16;
98typedef unsigned int uint32;
100typedef unsigned long long uint64;
103
104
112typedef signed char sint8;
114typedef signed short sint16;
116typedef signed int sint32;
118typedef signed long long sint64;
121
122
130typedef unsigned long uint8_least;
132typedef unsigned long uint16_least;
134typedef unsigned long uint32_least;
137
138
146typedef signed long sint8_least;
148typedef signed long sint16_least;
150typedef signed long sint32_least;
153
154
162typedef float float32;
164typedef double float64;
167
168
176typedef void *VoidPtr;
178typedef const void *ConstVoidPtr;
181
182
183#endif /* PLATFORM_TYPES_H */
signed int sint32
Definition Platform_Types.h:116
unsigned short uint16
Definition Platform_Types.h:96
unsigned int uint32
Definition Platform_Types.h:98
const void * ConstVoidPtr
Definition Platform_Types.h:178
signed char sint8
Definition Platform_Types.h:112
double float64
Definition Platform_Types.h:164
unsigned long long uint64
Definition Platform_Types.h:100
void * VoidPtr
Definition Platform_Types.h:176
signed short sint16
Definition Platform_Types.h:114
signed long sint16_least
Definition Platform_Types.h:148
float float32
Definition Platform_Types.h:162
unsigned long uint8_least
Definition Platform_Types.h:130
signed long sint8_least
Definition Platform_Types.h:146
signed long long sint64
Definition Platform_Types.h:118
unsigned char uint8
Definition Platform_Types.h:94
unsigned long uint32_least
Definition Platform_Types.h:134
signed long sint32_least
Definition Platform_Types.h:150
bool boolean
Definition Platform_Types.h:93
unsigned long uint16_least
Definition Platform_Types.h:132