1 #ifndef RT_CONFIG_H__
2 #define RT_CONFIG_H__
3 
4 /* RT-Thread Kernel */
5 
6 /* klibc options */
7 
8 /* rt_vsnprintf options */
9 
10 /* end of rt_vsnprintf options */
11 
12 /* rt_vsscanf options */
13 
14 /* end of rt_vsscanf options */
15 
16 /* rt_memset options */
17 
18 /* end of rt_memset options */
19 
20 /* rt_memcpy options */
21 
22 /* end of rt_memcpy options */
23 
24 /* rt_memmove options */
25 
26 /* end of rt_memmove options */
27 
28 /* rt_memcmp options */
29 
30 /* end of rt_memcmp options */
31 
32 /* rt_strstr options */
33 
34 /* end of rt_strstr options */
35 
36 /* rt_strcasecmp options */
37 
38 /* end of rt_strcasecmp options */
39 
40 /* rt_strncpy options */
41 
42 /* end of rt_strncpy options */
43 
44 /* rt_strcpy options */
45 
46 /* end of rt_strcpy options */
47 
48 /* rt_strncmp options */
49 
50 /* end of rt_strncmp options */
51 
52 /* rt_strcmp options */
53 
54 /* end of rt_strcmp options */
55 
56 /* rt_strlen options */
57 
58 /* end of rt_strlen options */
59 
60 /* rt_strnlen options */
61 
62 /* end of rt_strnlen options */
63 /* end of klibc options */
64 #define RT_NAME_MAX 10
65 #define RT_CPUS_NR 1
66 #define RT_ALIGN_SIZE 8
67 #define RT_THREAD_PRIORITY_32
68 #define RT_THREAD_PRIORITY_MAX 32
69 #define RT_TICK_PER_SECOND 1000
70 #define RT_USING_OVERFLOW_CHECK
71 #define RT_USING_HOOK
72 #define RT_HOOK_USING_FUNC_PTR
73 #define RT_USING_IDLE_HOOK
74 #define RT_IDLE_HOOK_LIST_SIZE 4
75 #define IDLE_THREAD_STACK_SIZE 8192
76 
77 /* kservice options */
78 
79 /* end of kservice options */
80 #define RT_USING_DEBUG
81 #define RT_DEBUGING_ASSERT
82 #define RT_DEBUGING_COLOR
83 #define RT_DEBUGING_CONTEXT
84 
85 /* Inter-Thread communication */
86 
87 #define RT_USING_SEMAPHORE
88 #define RT_USING_MUTEX
89 #define RT_USING_EVENT
90 #define RT_USING_MAILBOX
91 #define RT_USING_MESSAGEQUEUE
92 /* end of Inter-Thread communication */
93 
94 /* Memory Management */
95 
96 #define RT_USING_MEMPOOL
97 #define RT_USING_SMALL_MEM
98 #define RT_USING_MEMHEAP
99 #define RT_MEMHEAP_FAST_MODE
100 #define RT_USING_SMALL_MEM_AS_HEAP
101 #define RT_USING_HEAP
102 /* end of Memory Management */
103 #define RT_USING_DEVICE
104 #define RT_USING_INTERRUPT_INFO
105 #define RT_USING_CONSOLE
106 #define RT_CONSOLEBUF_SIZE 128
107 #define RT_CONSOLE_DEVICE_NAME "uart2"
108 #define RT_VER_NUM 0x50201
109 #define RT_BACKTRACE_LEVEL_MAX_NR 32
110 /* end of RT-Thread Kernel */
111 
112 /* RT-Thread Components */
113 
114 #define RT_USING_COMPONENTS_INIT
115 #define RT_USING_USER_MAIN
116 #define RT_MAIN_THREAD_STACK_SIZE 8192
117 #define RT_MAIN_THREAD_PRIORITY 10
118 #define RT_USING_MSH
119 #define RT_USING_FINSH
120 #define FINSH_USING_MSH
121 #define FINSH_THREAD_NAME "tshell"
122 #define FINSH_THREAD_PRIORITY 20
123 #define FINSH_THREAD_STACK_SIZE 8192
124 #define FINSH_USING_HISTORY
125 #define FINSH_HISTORY_LINES 5
126 #define FINSH_USING_SYMTAB
127 #define FINSH_CMD_SIZE 80
128 #define MSH_USING_BUILT_IN_COMMANDS
129 #define FINSH_USING_DESCRIPTION
130 #define FINSH_ARG_MAX 10
131 #define FINSH_USING_OPTION_COMPLETION
132 
133 /* DFS: device virtual file system */
134 
135 #define RT_USING_DFS
136 #define DFS_USING_POSIX
137 #define DFS_USING_WORKDIR
138 #define DFS_FD_MAX 4
139 #define RT_USING_DFS_V1
140 #define DFS_FILESYSTEMS_MAX 2
141 #define DFS_FILESYSTEM_TYPES_MAX 2
142 #define RT_USING_DFS_ELMFAT
143 
144 /* elm-chan's FatFs, Generic FAT Filesystem Module */
145 
146 #define RT_DFS_ELM_CODE_PAGE 936
147 #define RT_DFS_ELM_WORD_ACCESS
148 #define RT_DFS_ELM_USE_LFN_0
149 #define RT_DFS_ELM_USE_LFN 0
150 #define RT_DFS_ELM_LFN_UNICODE_0
151 #define RT_DFS_ELM_LFN_UNICODE 0
152 #define RT_DFS_ELM_MAX_LFN 64
153 #define RT_DFS_ELM_DRIVES 2
154 #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
155 #define RT_DFS_ELM_REENTRANT
156 #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
157 /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
158 #define RT_USING_DFS_DEVFS
159 /* end of DFS: device virtual file system */
160 
161 /* Device Drivers */
162 
163 #define RT_USING_DEVICE_IPC
164 #define RT_UNAMED_PIPE_NUMBER 64
165 #define RT_USING_SERIAL
166 #define RT_USING_SERIAL_V1
167 #define RT_SERIAL_USING_DMA
168 #define RT_SERIAL_RB_BUFSZ 64
169 #define RT_USING_CAN
170 #define RT_USING_I2C
171 #define RT_USING_I2C_BITOPS
172 #define RT_USING_SPI
173 #define RT_USING_SPI_MSD
174 #define RT_USING_PIN
175 #define RT_USING_KTIME
176 /* end of Device Drivers */
177 
178 /* C/C++ and POSIX layer */
179 
180 /* ISO-ANSI C layer */
181 
182 /* Timezone and Daylight Saving Time */
183 
184 #define RT_LIBC_USING_LIGHT_TZ_DST
185 #define RT_LIBC_TZ_DEFAULT_HOUR 8
186 #define RT_LIBC_TZ_DEFAULT_MIN 0
187 #define RT_LIBC_TZ_DEFAULT_SEC 0
188 /* end of Timezone and Daylight Saving Time */
189 /* end of ISO-ANSI C layer */
190 
191 /* POSIX (Portable Operating System Interface) layer */
192 
193 #define RT_USING_POSIX_DELAY
194 
195 /* Interprocess Communication (IPC) */
196 
197 
198 /* Socket is in the 'Network' category */
199 
200 /* end of Interprocess Communication (IPC) */
201 /* end of POSIX (Portable Operating System Interface) layer */
202 /* end of C/C++ and POSIX layer */
203 
204 /* Network */
205 
206 #define NETDEV_USING_PING
207 #define RT_USING_LWIP
208 #define RT_USING_LWIP141
209 #define RT_USING_LWIP_VER_NUM 0x10401
210 #define RT_LWIP_MEM_ALIGNMENT 4
211 #define RT_LWIP_IGMP
212 #define RT_LWIP_ICMP
213 #define RT_LWIP_DNS
214 #define RT_LWIP_DHCP
215 #define IP_SOF_BROADCAST 1
216 #define IP_SOF_BROADCAST_RECV 1
217 
218 /* Static IPv4 Address */
219 
220 #define RT_LWIP_IPADDR "192.168.1.254"
221 #define RT_LWIP_GWADDR "192.168.1.1"
222 #define RT_LWIP_MSKADDR "255.255.255.0"
223 /* end of Static IPv4 Address */
224 #define RT_LWIP_UDP
225 #define RT_LWIP_TCP
226 #define RT_LWIP_RAW
227 #define RT_MEMP_NUM_NETCONN 8
228 #define RT_LWIP_PBUF_NUM 4
229 #define RT_LWIP_RAW_PCB_NUM 4
230 #define RT_LWIP_UDP_PCB_NUM 4
231 #define RT_LWIP_TCP_PCB_NUM 3
232 #define RT_LWIP_TCP_SEG_NUM 40
233 #define RT_LWIP_TCP_SND_BUF 4096
234 #define RT_LWIP_TCP_WND 2048
235 #define RT_LWIP_TCPTHREAD_PRIORITY 12
236 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
237 #define RT_LWIP_TCPTHREAD_STACKSIZE 8192
238 #define RT_LWIP_ETHTHREAD_PRIORITY 14
239 #define RT_LWIP_ETHTHREAD_STACKSIZE 8192
240 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
241 #define LWIP_NETIF_STATUS_CALLBACK 1
242 #define LWIP_NETIF_LINK_CALLBACK 1
243 #define RT_LWIP_NETIF_NAMESIZE 6
244 #define SO_REUSE 1
245 #define LWIP_SO_RCVTIMEO 1
246 #define LWIP_SO_SNDTIMEO 1
247 #define LWIP_SO_RCVBUF 1
248 #define LWIP_SO_LINGER 0
249 #define LWIP_NETIF_LOOPBACK 0
250 #define RT_LWIP_USING_PING
251 /* end of Network */
252 
253 /* Memory protection */
254 
255 /* end of Memory protection */
256 
257 /* Utilities */
258 
259 /* end of Utilities */
260 
261 /* Using USB legacy version */
262 
263 /* end of Using USB legacy version */
264 /* end of RT-Thread Components */
265 
266 /* RT-Thread Utestcases */
267 
268 /* end of RT-Thread Utestcases */
269 
270 /* RT-Thread MIPS CPU */
271 
272 /* end of RT-Thread MIPS CPU */
273 
274 /* RT-Thread online packages */
275 
276 /* IoT - internet of things */
277 
278 
279 /* Wi-Fi */
280 
281 /* Marvell WiFi */
282 
283 /* end of Marvell WiFi */
284 
285 /* Wiced WiFi */
286 
287 /* end of Wiced WiFi */
288 
289 /* CYW43012 WiFi */
290 
291 /* end of CYW43012 WiFi */
292 
293 /* BL808 WiFi */
294 
295 /* end of BL808 WiFi */
296 
297 /* CYW43439 WiFi */
298 
299 /* end of CYW43439 WiFi */
300 /* end of Wi-Fi */
301 
302 /* IoT Cloud */
303 
304 /* end of IoT Cloud */
305 /* end of IoT - internet of things */
306 
307 /* security packages */
308 
309 /* end of security packages */
310 
311 /* language packages */
312 
313 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
314 
315 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
316 
317 /* XML: Extensible Markup Language */
318 
319 /* end of XML: Extensible Markup Language */
320 /* end of language packages */
321 
322 /* multimedia packages */
323 
324 /* LVGL: powerful and easy-to-use embedded GUI library */
325 
326 /* end of LVGL: powerful and easy-to-use embedded GUI library */
327 
328 /* u8g2: a monochrome graphic library */
329 
330 /* end of u8g2: a monochrome graphic library */
331 /* end of multimedia packages */
332 
333 /* tools packages */
334 
335 /* end of tools packages */
336 
337 /* system packages */
338 
339 /* enhanced kernel services */
340 
341 /* end of enhanced kernel services */
342 
343 /* acceleration: Assembly language or algorithmic acceleration packages */
344 
345 /* end of acceleration: Assembly language or algorithmic acceleration packages */
346 
347 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
348 
349 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
350 
351 /* Micrium: Micrium software products porting for RT-Thread */
352 
353 /* end of Micrium: Micrium software products porting for RT-Thread */
354 /* end of system packages */
355 
356 /* peripheral libraries and drivers */
357 
358 /* HAL & SDK Drivers */
359 
360 /* STM32 HAL & SDK Drivers */
361 
362 /* end of STM32 HAL & SDK Drivers */
363 
364 /* Infineon HAL Packages */
365 
366 /* end of Infineon HAL Packages */
367 
368 /* Kendryte SDK */
369 
370 /* end of Kendryte SDK */
371 
372 /* WCH HAL & SDK Drivers */
373 
374 /* end of WCH HAL & SDK Drivers */
375 
376 /* AT32 HAL & SDK Drivers */
377 
378 /* end of AT32 HAL & SDK Drivers */
379 
380 /* HC32 DDL Drivers */
381 
382 /* end of HC32 DDL Drivers */
383 
384 /* NXP HAL & SDK Drivers */
385 
386 /* end of NXP HAL & SDK Drivers */
387 /* end of HAL & SDK Drivers */
388 
389 /* sensors drivers */
390 
391 /* end of sensors drivers */
392 
393 /* touch drivers */
394 
395 /* end of touch drivers */
396 /* end of peripheral libraries and drivers */
397 
398 /* AI packages */
399 
400 /* end of AI packages */
401 
402 /* Signal Processing and Control Algorithm Packages */
403 
404 /* end of Signal Processing and Control Algorithm Packages */
405 
406 /* miscellaneous packages */
407 
408 /* project laboratory */
409 
410 /* end of project laboratory */
411 
412 /* samples: kernel and components samples */
413 
414 /* end of samples: kernel and components samples */
415 
416 /* entertainment: terminal games and other interesting software packages */
417 
418 /* end of entertainment: terminal games and other interesting software packages */
419 /* end of miscellaneous packages */
420 
421 /* Arduino libraries */
422 
423 
424 /* Projects and Demos */
425 
426 /* end of Projects and Demos */
427 
428 /* Sensors */
429 
430 /* end of Sensors */
431 
432 /* Display */
433 
434 /* end of Display */
435 
436 /* Timing */
437 
438 /* end of Timing */
439 
440 /* Data Processing */
441 
442 /* end of Data Processing */
443 
444 /* Data Storage */
445 
446 /* Communication */
447 
448 /* end of Communication */
449 
450 /* Device Control */
451 
452 /* end of Device Control */
453 
454 /* Other */
455 
456 /* end of Other */
457 
458 /* Signal IO */
459 
460 /* end of Signal IO */
461 
462 /* Uncategorized */
463 
464 /* end of Arduino libraries */
465 /* end of RT-Thread online packages */
466 #define SOC_LS1C300
467 #define RT_LS1C_OPENLOONGSON
468 #define RT_USING_UART2
469 #define RT_USING_UART1
470 #define RT_UART_RX_BUFFER_SIZE 64
471 #define RT_USING_GMAC_INT_MODE
472 #define NO_TOUCH
473 
474 #endif
475