-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobdefs.h
130 lines (88 loc) · 1.85 KB
/
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#ifndef _GLOBDEFS_H
#define _GLOBDEFS_H
#include <rom.h>
#include <rom_map.h>
#include <signal.h>
#include <stdint.h>
#include <time.h>
/* Включения для 504 блекфина, не 506!!!! */
#ifndef _WIN32 /* Embedded platform */
#include <float.h>
#else /* windows */
#include <windows.h>
#include <tchar.h>
#endif
#ifndef u8
#define u8 unsigned char
#endif
#ifndef s8
#define s8 char
#endif
#ifndef c8
#define c8 char
#endif
#ifndef u16
#define u16 unsigned short
#endif
#ifndef s16
#define s16 short
#endif
#ifndef i32
#define i32 int
#endif
#ifndef u32
#define u32 unsigned long
#endif
#ifndef s32
#define s32 long
#endif
#ifndef u64
#define u64 uint64_t
#endif
#ifndef s64
#define s64 int64_t
#endif
/* Длинное время */
#ifndef time64
#define time64 int64_t
#endif
/* long double не поддержываеца */
#ifndef f32
#define f32 float
#endif
#ifndef bool
#define bool u8
#endif
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#ifndef IDEF
#define IDEF static inline
#endif
/* Делители */
#define SYSCLK 80000000UL
/* Стек для задач. размер */
#define OSI_STACK_SIZE 1024
#define LOADER_TASK_PRIORITY 1
#define GPS_TASK_PRIORITY 1
#define PWM_TASK_PRIORITY 1
#define SENSOR_TASK_PRIORITY 1
#define CHECK_TIME_TASK_PRIORITY 1
#define WLAN_STATION_TASK_PRIORITY 1
#define TX_DATA_TASK_PRIORITY 5
#define TCP_RX_TASK_PRIORITY 5
#define UDP_RX_TASK_PRIORITY 5
#define SD_TASK_PRIORITY 1
#define CMD_TASK_PRIORITY 1
#define ADC_TASK_PRIORITY 1
/**
* Передадим FTP серверу
*/
typedef union {
u32 ip;
u8 bIp[4];
} my_ip_addr;
#endif /* my_defs.h */