c_types.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <stdbool.h>
5 #include <stddef.h>
6 
7 // Non-preferred types commonly used in Arduino libraries
8 typedef uint8_t uint8;
9 typedef uint8_t u8;
10 typedef int8_t sint8;
11 typedef int8_t int8;
12 typedef int8_t s8;
13 typedef uint16_t uint16;
14 typedef uint16_t u16;
15 typedef int16_t sint16;
16 typedef int16_t s16;
17 typedef uint32_t uint32;
18 // typedef uint32_t u_int;
19 typedef uint32_t u32;
20 typedef int32_t sint32;
21 typedef int32_t s32;
22 typedef int32_t int32;
23 typedef int64_t sint64;
24 typedef uint64_t uint64;
25 typedef uint64_t u64;
26 typedef float real32;
27 typedef double real64;
28 
29 #ifndef BIT
30 #define BIT(nr) (1UL << (nr))
31 #endif
32 
33 #ifndef TRUE
34 #define TRUE true
35 #define FALSE false
36 #endif
37 
38 #ifndef LOCAL
39 #define LOCAL static
40 #endif
double real64
Definition: c_types.h:27
uint8_t uint8
Definition: c_types.h:8
int8_t sint8
Definition: c_types.h:10
uint64_t u64
Definition: c_types.h:25
int64_t sint64
Definition: c_types.h:23
int32_t sint32
Definition: c_types.h:20
uint8_t u8
Definition: c_types.h:9
int8_t s8
Definition: c_types.h:12
int8_t int8
Definition: c_types.h:11
int16_t sint16
Definition: c_types.h:15
int16_t s16
Definition: c_types.h:16
int32_t int32
Definition: c_types.h:22
uint64_t uint64
Definition: c_types.h:24
uint16_t uint16
Definition: c_types.h:13
uint32_t uint32
Definition: c_types.h:17
uint16_t u16
Definition: c_types.h:14
int32_t s32
Definition: c_types.h:21
float real32
Definition: c_types.h:26
uint32_t u32
Definition: c_types.h:19