1 #ifndef RT_CONFIG_H__
2 #define RT_CONFIG_H__
3 
4 /* Automatically generated file; DO NOT EDIT. */
5 /* RT-Thread Configuration */
6 
7 /* RT-Thread Kernel */
8 
9 #define RT_NAME_MAX 8
10 #define RT_ALIGN_SIZE 8
11 #define RT_THREAD_PRIORITY_32
12 #define RT_THREAD_PRIORITY_MAX 32
13 #define RT_TICK_PER_SECOND 100
14 #define RT_USING_OVERFLOW_CHECK
15 #define RT_USING_HOOK
16 #define RT_USING_IDLE_HOOK
17 #define RT_IDLE_HOOK_LIST_SIZE 4
18 #define IDLE_THREAD_STACK_SIZE 256
19 #define RT_USING_TIMER_SOFT
20 #define RT_TIMER_THREAD_PRIO 4
21 #define RT_TIMER_THREAD_STACK_SIZE 512
22 #define RT_DEBUG
23 
24 /* Inter-Thread communication */
25 
26 #define RT_USING_SEMAPHORE
27 #define RT_USING_MUTEX
28 #define RT_USING_EVENT
29 #define RT_USING_MAILBOX
30 #define RT_USING_MESSAGEQUEUE
31 
32 /* Memory Management */
33 
34 #define RT_USING_MEMPOOL
35 #define RT_USING_SMALL_MEM
36 #define RT_USING_HEAP
37 
38 /* Kernel Device Object */
39 
40 #define RT_USING_DEVICE
41 #define RT_USING_CONSOLE
42 #define RT_CONSOLEBUF_SIZE 128
43 #define RT_CONSOLE_DEVICE_NAME "uart0"
44 #define RT_VER_NUM 0x40003
45 
46 /* RT-Thread Components */
47 
48 #define RT_USING_COMPONENTS_INIT
49 #define RT_USING_USER_MAIN
50 #define RT_MAIN_THREAD_STACK_SIZE 2048
51 #define RT_MAIN_THREAD_PRIORITY 10
52 
53 /* C++ features */
54 
55 
56 /* Command shell */
57 
58 #define RT_USING_FINSH
59 #define FINSH_THREAD_NAME "tshell"
60 #define FINSH_USING_HISTORY
61 #define FINSH_HISTORY_LINES 5
62 #define FINSH_USING_SYMTAB
63 #define FINSH_USING_DESCRIPTION
64 #define FINSH_THREAD_PRIORITY 20
65 #define FINSH_THREAD_STACK_SIZE 4096
66 #define FINSH_CMD_SIZE 80
67 #define FINSH_USING_MSH
68 #define FINSH_USING_MSH_DEFAULT
69 #define FINSH_USING_MSH_ONLY
70 #define FINSH_ARG_MAX 10
71 
72 /* Device virtual file system */
73 
74 
75 /* Device Drivers */
76 
77 #define RT_USING_DEVICE_IPC
78 #define RT_PIPE_BUFSZ 512
79 #define RT_USING_SERIAL
80 #define RT_SERIAL_RB_BUFSZ 64
81 #define RT_USING_PIN
82 
83 /* Using USB */
84 
85 
86 /* POSIX layer and C standard library */
87 
88 
89 /* Network */
90 
91 /* Socket abstraction layer */
92 
93 
94 /* Network interface device */
95 
96 
97 /* light weight TCP/IP stack */
98 
99 
100 /* AT commands */
101 
102 
103 /* VBUS(Virtual Software BUS) */
104 
105 
106 /* Utilities */
107 
108 
109 /* RT-Thread online packages */
110 
111 /* IoT - internet of things */
112 
113 
114 /* Wi-Fi */
115 
116 /* Marvell WiFi */
117 
118 
119 /* Wiced WiFi */
120 
121 
122 /* IoT Cloud */
123 
124 
125 /* security packages */
126 
127 
128 /* language packages */
129 
130 
131 /* multimedia packages */
132 
133 
134 /* tools packages */
135 
136 
137 /* system packages */
138 
139 
140 /* Micrium: Micrium software products porting for RT-Thread */
141 
142 
143 /* peripheral libraries and drivers */
144 
145 #define PKG_USING_NRFX
146 #define PKG_USING_NRFX_LATEST_VERSION
147 
148 /* AI packages */
149 
150 
151 /* miscellaneous packages */
152 
153 
154 /* samples: kernel and components samples */
155 
156 
157 /* games: games run on RT-Thread console */
158 
159 
160 /* Hardware Drivers Config */
161 
162 #define SOC_NRF52840
163 #define NRFX_CLOCK_ENABLED 1
164 #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
165 #define NRFX_CLOCK_CONFIG_LF_SRC 1
166 #define SOC_NORDIC
167 
168 /* On-chip Peripheral Drivers */
169 
170 #define BSP_USING_UART
171 #define NRFX_USING_UART
172 #define NRFX_UART_ENABLED 1
173 #define BSP_USING_UART0
174 #define NRFX_UART0_ENABLED 1
175 #define BSP_UART0_RX_PIN 8
176 #define BSP_UART0_TX_PIN 6
177 
178 /* On-chip flash config */
179 
180 #define MCU_FLASH_START_ADDRESS 0x00000000
181 #define MCU_FLASH_SIZE_KB 1024
182 #define MCU_SRAM_START_ADDRESS 0x20000000
183 #define MCU_SRAM_SIZE_KB 256
184 #define MCU_FLASH_PAGE_SIZE 0x1000
185 
186 #endif
187