WGR-V
 
Lade ...
Suche ...
Keine Treffer
wgrtypes.h
1#ifndef WGRTYPES_H
2#define WGRTYPES_H
3
4#ifndef NULL
5#define NULL ((void *)0)
6#endif
7
8#ifndef bool
9typedef _Bool bool;
10#define true 1
11#define false 0
12#endif
13
14#ifndef uint8_t
15typedef unsigned char uint8_t;
16#endif
17
18#ifndef int8_t
19typedef signed char int8_t;
20#endif
21
22#ifndef uint16_t
23typedef unsigned short uint16_t;
24#endif
25
26#ifndef int16_t
27typedef short int16_t;
28#endif
29
30#ifndef uint32_t
31typedef unsigned int uint32_t;
32#endif
33
34#ifndef int32_t
35typedef int int32_t;
36#endif
37
38#ifndef uint64_t
39typedef unsigned long long uint64_t;
40#endif
41
42#ifndef int64_t
43typedef long long int64_t;
44#endif
45
46#ifndef size_t
47typedef unsigned int size_t;
48#endif
49
50#ifndef uintptr_t
51typedef uint32_t uintptr_t;
52#endif
53
54#ifndef intptr_t
55typedef int32_t intptr_t;
56#endif
57
58typedef enum
59{
60 BAUD_115200 = 0,
61 BAUD_57600 = 1,
62 BAUD_38400 = 2,
63 BAUD_28800 = 3,
64 BAUD_23040 = 4,
65 BAUD_19200 = 5,
66 BAUD_14400 = 6,
67 BAUD_9600 = 7,
68 BAUD_4800 = 8,
69 BAUD_2400 = 9,
70 BAUD_1200 = 10,
71 BAUD_300 = 11
72} baud_sel_t;
73
74#endif /* WGRTYPES_H */