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