-
Notifications
You must be signed in to change notification settings - Fork 3
/
globdefs.h
68 lines (45 loc) · 965 Bytes
/
globdefs.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
63
64
65
66
67
68
#ifndef _GLOBDEFS_H
#define _GLOBDEFS_H
#include <signal.h>
#include <stdint.h>
#include <inttypes.h>
#include <time.h>
#include <float.h>
typedef uint64_t u64;
typedef int64_t s64;
typedef uint32_t u32;
typedef int32_t s32;
typedef uint16_t u16;
typedef int16_t s16;
typedef uint8_t u8;
typedef int8_t s8;
typedef char c8;
#if 0
/* long double */
#ifndef f32
#define f32 float
#endif
#ifndef bool
#define bool uint8_t
#endif
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#endif
#ifndef IDEF
#define IDEF static inline
#endif
#define IAR_LOG_PRINTF
//#undef IAR_LOG_PRINTF
/* ñåìèõîñòèíã-âûâîä â êîíñîëü IAR */
#if defined IAR_LOG_PRINTF
#define log_printf printf
#endif
/* Ïåðåîïðåäåëåíèÿ malloc è free è printf */
#define malloc pvPortMalloc
#define free vPortFree
#define calloc(x, y) pvPortMalloc(x * y)
#endif /* globdefs.h */