File tree Expand file tree Collapse file tree 3 files changed +64
-24
lines changed Expand file tree Collapse file tree 3 files changed +64
-24
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ extern "C" {
42
42
#define MG_ARCH_ARMCC 12 // Keil MDK-Core with Configuration Wizard
43
43
#define MG_ARCH_CMSIS_RTOS2 13 // CMSIS-RTOS API v2 (Keil RTX5, FreeRTOS)
44
44
#define MG_ARCH_RTTHREAD 14 // RT-Thread RTOS
45
+ #define MG_ARCH_ARMCGT 15 // Texas Semi ARM-CGT
45
46
46
47
#if !defined(MG_ARCH)
47
48
#if defined(__unix__) || defined(__APPLE__)
@@ -76,6 +77,25 @@ extern "C" {
76
77
77
78
78
79
80
+ #if MG_ARCH == MG_ARCH_ARMCGT
81
+
82
+ #include < ctype.h>
83
+ #include < errno.h>
84
+ #include < stdarg.h>
85
+ #include < stdbool.h>
86
+ #include < stdio.h>
87
+ #include < stdlib.h>
88
+ #include < string.h>
89
+ #include < sys/types.h>
90
+ #include < time.h>
91
+
92
+ #define MG_PATH_MAX 100
93
+ #define MG_ENABLE_SOCKET 0
94
+ #define MG_ENABLE_DIRLIST 0
95
+
96
+ #endif
97
+
98
+
79
99
#if MG_ARCH == MG_ARCH_AZURERTOS
80
100
81
101
#include < stdarg.h>
@@ -236,30 +256,30 @@ static inline int mg_mkdir(const char *path, mode_t mode) {
236
256
#include < pico/stdlib.h>
237
257
int mkdir (const char *, mode_t );
238
258
#endif
239
-
240
-
241
- #if MG_ARCH == MG_ARCH_RTTHREAD
242
-
243
- #include < rtthread.h>
244
- #include < ctype.h>
245
- #include < errno.h>
246
- #include < fcntl.h>
247
- #include < sys/socket.h>
248
- #include < sys/select.h>
249
- #include < stdarg.h>
250
- #include < stdbool.h>
251
- #include < stdint.h>
252
- #include < stdio.h>
253
- #include < stdlib.h>
254
- #include < string.h>
255
- #include < sys/types.h>
256
- #include < time.h>
257
-
258
- #ifndef MG_IO_SIZE
259
- #define MG_IO_SIZE 1460
260
- #endif
261
-
262
- #endif // MG_ARCH == MG_ARCH_RTTHREAD
259
+
260
+
261
+ #if MG_ARCH == MG_ARCH_RTTHREAD
262
+
263
+ #include < rtthread.h>
264
+ #include < ctype.h>
265
+ #include < errno.h>
266
+ #include < fcntl.h>
267
+ #include < sys/socket.h>
268
+ #include < sys/select.h>
269
+ #include < stdarg.h>
270
+ #include < stdbool.h>
271
+ #include < stdint.h>
272
+ #include < stdio.h>
273
+ #include < stdlib.h>
274
+ #include < string.h>
275
+ #include < sys/types.h>
276
+ #include < time.h>
277
+
278
+ #ifndef MG_IO_SIZE
279
+ #define MG_IO_SIZE 1460
280
+ #endif
281
+
282
+ #endif // MG_ARCH == MG_ARCH_RTTHREAD
263
283
264
284
265
285
#if MG_ARCH == MG_ARCH_ARMCC || MG_ARCH == MG_ARCH_CMSIS_RTOS1 || \
Original file line number Diff line number Diff line change 15
15
#define MG_ARCH_ARMCC 12 // Keil MDK-Core with Configuration Wizard
16
16
#define MG_ARCH_CMSIS_RTOS2 13 // CMSIS-RTOS API v2 (Keil RTX5, FreeRTOS)
17
17
#define MG_ARCH_RTTHREAD 14 // RT-Thread RTOS
18
+ #define MG_ARCH_ARMCGT 15 // Texas Semi ARM-CGT
18
19
19
20
#if !defined(MG_ARCH )
20
21
#if defined(__unix__ ) || defined(__APPLE__ )
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #if MG_ARCH == MG_ARCH_ARMCGT
4
+
5
+ #include <ctype.h>
6
+ #include <errno.h>
7
+ #include <stdarg.h>
8
+ #include <stdbool.h>
9
+ #include <stdio.h>
10
+ #include <stdlib.h>
11
+ #include <string.h>
12
+ #include <sys/types.h>
13
+ #include <time.h>
14
+
15
+ #define MG_PATH_MAX 100
16
+ #define MG_ENABLE_SOCKET 0
17
+ #define MG_ENABLE_DIRLIST 0
18
+
19
+ #endif
You can’t perform that action at this time.
0 commit comments