1 #ifndef RT_CONFIG_H__
2 #define RT_CONFIG_H__
3 
4 /* Hardware Drivers Config */
5 
6 #define SOC_NRF5340
7 #define SOC_NORDIC
8 #define BSP_BOARD_PCA_10095
9 
10 /* Onboard Peripheral Drivers */
11 
12 #define RT_BSP_LED_PIN 28
13 /* end of Onboard Peripheral Drivers */
14 
15 /* On-chip Peripheral Drivers */
16 
17 #define BSP_USING_GPIO
18 #define BSP_USING_UART
19 #define NRFX_USING_UARTE
20 #define BSP_USING_UART0
21 #define BSP_UART0_RX_PIN 22
22 #define BSP_UART0_TX_PIN 20
23 #define NRFX_UARTE_ENABLED 1
24 #define NRFX_UARTE0_ENABLED 1
25 #define BSP_USING_UART1
26 #define NRFX_UARTE1_ENABLED 1
27 #define BSP_UART1_RX_PIN 32
28 #define BSP_UART1_TX_PIN 33
29 
30 /* MCU flash config */
31 
32 #define MCU_FLASH_START_ADDRESS 0x00000000
33 #define MCU_FLASH_SIZE_KB 1024
34 #define MCU_SRAM_START_ADDRESS 0x20000000
35 #define MCU_SRAM_SIZE_KB 512
36 #define MCU_FLASH_PAGE_SIZE 0x1000
37 /* end of MCU flash config */
38 /* end of On-chip Peripheral Drivers */
39 #define BLE_STACK_USING_NULL
40 #define NRFX_CLOCK_ENABLED 1
41 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
42 #define NRFX_CLOCK_CONFIG_LF_SRC 1
43 #define NRFX_UART_ENABLED 1
44 #define NRFX_UART0_ENABLED 1
45 #define NRFX_GPIOTE_ENABLED 1
46 /* end of Hardware Drivers Config */
47 
48 /* RT-Thread Kernel */
49 
50 /* klibc options */
51 
52 /* rt_vsnprintf options */
53 
54 /* end of rt_vsnprintf options */
55 
56 /* rt_vsscanf options */
57 
58 /* end of rt_vsscanf options */
59 
60 /* rt_memset options */
61 
62 /* end of rt_memset options */
63 
64 /* rt_memcpy options */
65 
66 /* end of rt_memcpy options */
67 
68 /* rt_memmove options */
69 
70 /* end of rt_memmove options */
71 
72 /* rt_memcmp options */
73 
74 /* end of rt_memcmp options */
75 
76 /* rt_strstr options */
77 
78 /* end of rt_strstr options */
79 
80 /* rt_strcasecmp options */
81 
82 /* end of rt_strcasecmp options */
83 
84 /* rt_strncpy options */
85 
86 /* end of rt_strncpy options */
87 
88 /* rt_strcpy options */
89 
90 /* end of rt_strcpy options */
91 
92 /* rt_strncmp options */
93 
94 /* end of rt_strncmp options */
95 
96 /* rt_strcmp options */
97 
98 /* end of rt_strcmp options */
99 
100 /* rt_strlen options */
101 
102 /* end of rt_strlen options */
103 
104 /* rt_strnlen options */
105 
106 /* end of rt_strnlen options */
107 /* end of klibc options */
108 #define RT_NAME_MAX 8
109 #define RT_CPUS_NR 1
110 #define RT_ALIGN_SIZE 8
111 #define RT_THREAD_PRIORITY_32
112 #define RT_THREAD_PRIORITY_MAX 32
113 #define RT_TICK_PER_SECOND 100
114 #define RT_USING_HOOK
115 #define RT_HOOK_USING_FUNC_PTR
116 #define RT_USING_IDLE_HOOK
117 #define RT_IDLE_HOOK_LIST_SIZE 4
118 #define IDLE_THREAD_STACK_SIZE 512
119 #define RT_USING_TIMER_SOFT
120 #define RT_TIMER_THREAD_PRIO 4
121 #define RT_TIMER_THREAD_STACK_SIZE 512
122 
123 /* kservice options */
124 
125 /* end of kservice options */
126 #define RT_USING_DEBUG
127 #define RT_DEBUGING_ASSERT
128 #define RT_DEBUGING_COLOR
129 #define RT_DEBUGING_CONTEXT
130 
131 /* Inter-Thread communication */
132 
133 #define RT_USING_SEMAPHORE
134 #define RT_USING_MUTEX
135 #define RT_USING_EVENT
136 #define RT_USING_MESSAGEQUEUE
137 /* end of Inter-Thread communication */
138 
139 /* Memory Management */
140 
141 #define RT_USING_MEMPOOL
142 #define RT_USING_SMALL_MEM
143 #define RT_USING_SMALL_MEM_AS_HEAP
144 #define RT_USING_HEAP
145 /* end of Memory Management */
146 #define RT_USING_DEVICE
147 #define RT_USING_CONSOLE
148 #define RT_CONSOLEBUF_SIZE 128
149 #define RT_CONSOLE_DEVICE_NAME "uart0"
150 #define RT_VER_NUM 0x50201
151 #define RT_BACKTRACE_LEVEL_MAX_NR 32
152 /* end of RT-Thread Kernel */
153 
154 /* RT-Thread Components */
155 
156 #define RT_USING_COMPONENTS_INIT
157 #define RT_USING_USER_MAIN
158 #define RT_MAIN_THREAD_STACK_SIZE 2048
159 #define RT_MAIN_THREAD_PRIORITY 10
160 #define RT_USING_MSH
161 #define RT_USING_FINSH
162 #define FINSH_USING_MSH
163 #define FINSH_THREAD_NAME "tshell"
164 #define FINSH_THREAD_PRIORITY 20
165 #define FINSH_THREAD_STACK_SIZE 4096
166 #define FINSH_USING_HISTORY
167 #define FINSH_HISTORY_LINES 5
168 #define FINSH_USING_SYMTAB
169 #define FINSH_CMD_SIZE 80
170 #define MSH_USING_BUILT_IN_COMMANDS
171 #define FINSH_USING_DESCRIPTION
172 #define FINSH_ARG_MAX 10
173 #define FINSH_USING_OPTION_COMPLETION
174 
175 /* DFS: device virtual file system */
176 
177 /* end of DFS: device virtual file system */
178 
179 /* Device Drivers */
180 
181 #define RT_USING_DEVICE_IPC
182 #define RT_UNAMED_PIPE_NUMBER 64
183 #define RT_USING_SERIAL
184 #define RT_USING_SERIAL_V1
185 #define RT_SERIAL_USING_DMA
186 #define RT_SERIAL_RB_BUFSZ 64
187 #define RT_USING_PIN
188 /* end of Device Drivers */
189 
190 /* C/C++ and POSIX layer */
191 
192 /* ISO-ANSI C layer */
193 
194 /* Timezone and Daylight Saving Time */
195 
196 #define RT_LIBC_USING_LIGHT_TZ_DST
197 #define RT_LIBC_TZ_DEFAULT_HOUR 8
198 #define RT_LIBC_TZ_DEFAULT_MIN 0
199 #define RT_LIBC_TZ_DEFAULT_SEC 0
200 /* end of Timezone and Daylight Saving Time */
201 /* end of ISO-ANSI C layer */
202 
203 /* POSIX (Portable Operating System Interface) layer */
204 
205 
206 /* Interprocess Communication (IPC) */
207 
208 
209 /* Socket is in the 'Network' category */
210 
211 /* end of Interprocess Communication (IPC) */
212 /* end of POSIX (Portable Operating System Interface) layer */
213 /* end of C/C++ and POSIX layer */
214 
215 /* Network */
216 
217 /* end of Network */
218 
219 /* Memory protection */
220 
221 /* end of Memory protection */
222 
223 /* Utilities */
224 
225 /* end of Utilities */
226 
227 /* Using USB legacy version */
228 
229 /* end of Using USB legacy version */
230 /* end of RT-Thread Components */
231 
232 /* RT-Thread Utestcases */
233 
234 /* end of RT-Thread Utestcases */
235 
236 /* RT-Thread online packages */
237 
238 /* IoT - internet of things */
239 
240 
241 /* Wi-Fi */
242 
243 /* Marvell WiFi */
244 
245 /* end of Marvell WiFi */
246 
247 /* Wiced WiFi */
248 
249 /* end of Wiced WiFi */
250 
251 /* CYW43012 WiFi */
252 
253 /* end of CYW43012 WiFi */
254 
255 /* BL808 WiFi */
256 
257 /* end of BL808 WiFi */
258 
259 /* CYW43439 WiFi */
260 
261 /* end of CYW43439 WiFi */
262 /* end of Wi-Fi */
263 
264 /* IoT Cloud */
265 
266 /* end of IoT Cloud */
267 /* end of IoT - internet of things */
268 
269 /* security packages */
270 
271 /* end of security packages */
272 
273 /* language packages */
274 
275 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
276 
277 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
278 
279 /* XML: Extensible Markup Language */
280 
281 /* end of XML: Extensible Markup Language */
282 /* end of language packages */
283 
284 /* multimedia packages */
285 
286 /* LVGL: powerful and easy-to-use embedded GUI library */
287 
288 /* end of LVGL: powerful and easy-to-use embedded GUI library */
289 
290 /* u8g2: a monochrome graphic library */
291 
292 /* end of u8g2: a monochrome graphic library */
293 /* end of multimedia packages */
294 
295 /* tools packages */
296 
297 /* end of tools packages */
298 
299 /* system packages */
300 
301 /* enhanced kernel services */
302 
303 /* end of enhanced kernel services */
304 
305 /* acceleration: Assembly language or algorithmic acceleration packages */
306 
307 /* end of acceleration: Assembly language or algorithmic acceleration packages */
308 
309 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
310 
311 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
312 
313 /* Micrium: Micrium software products porting for RT-Thread */
314 
315 /* end of Micrium: Micrium software products porting for RT-Thread */
316 /* end of system packages */
317 
318 /* peripheral libraries and drivers */
319 
320 /* HAL & SDK Drivers */
321 
322 /* STM32 HAL & SDK Drivers */
323 
324 /* end of STM32 HAL & SDK Drivers */
325 
326 /* Infineon HAL Packages */
327 
328 /* end of Infineon HAL Packages */
329 
330 /* Kendryte SDK */
331 
332 /* end of Kendryte SDK */
333 #define PKG_USING_NRFX
334 #define PKG_USING_NRFX_LATEST_VERSION
335 
336 /* WCH HAL & SDK Drivers */
337 
338 /* end of WCH HAL & SDK Drivers */
339 
340 /* AT32 HAL & SDK Drivers */
341 
342 /* end of AT32 HAL & SDK Drivers */
343 
344 /* HC32 DDL Drivers */
345 
346 /* end of HC32 DDL Drivers */
347 
348 /* NXP HAL & SDK Drivers */
349 
350 /* end of NXP HAL & SDK Drivers */
351 /* end of HAL & SDK Drivers */
352 
353 /* sensors drivers */
354 
355 /* end of sensors drivers */
356 
357 /* touch drivers */
358 
359 /* end of touch drivers */
360 /* end of peripheral libraries and drivers */
361 
362 /* AI packages */
363 
364 /* end of AI packages */
365 
366 /* Signal Processing and Control Algorithm Packages */
367 
368 /* end of Signal Processing and Control Algorithm Packages */
369 
370 /* miscellaneous packages */
371 
372 /* project laboratory */
373 
374 /* end of project laboratory */
375 
376 /* samples: kernel and components samples */
377 
378 /* end of samples: kernel and components samples */
379 
380 /* entertainment: terminal games and other interesting software packages */
381 
382 /* end of entertainment: terminal games and other interesting software packages */
383 /* end of miscellaneous packages */
384 
385 /* Arduino libraries */
386 
387 
388 /* Projects and Demos */
389 
390 /* end of Projects and Demos */
391 
392 /* Sensors */
393 
394 /* end of Sensors */
395 
396 /* Display */
397 
398 /* end of Display */
399 
400 /* Timing */
401 
402 /* end of Timing */
403 
404 /* Data Processing */
405 
406 /* end of Data Processing */
407 
408 /* Data Storage */
409 
410 /* Communication */
411 
412 /* end of Communication */
413 
414 /* Device Control */
415 
416 /* end of Device Control */
417 
418 /* Other */
419 
420 /* end of Other */
421 
422 /* Signal IO */
423 
424 /* end of Signal IO */
425 
426 /* Uncategorized */
427 
428 /* end of Arduino libraries */
429 /* end of RT-Thread online packages */
430 
431 #endif
432