rtconfig.h 5.8 KB
Newer Older
S
supperthomas 已提交
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
S
supperthomas 已提交
5

Thomas_Fly's avatar
Thomas_Fly 已提交
6 7 8 9 10 11 12 13 14 15
/* Hardware Drivers Config */

#define SOC_NRF52840
#define SOC_NORDIC
#define BSP_BOARD_PCA_10056

/* Onboard Peripheral Drivers */

#define BSP_USING_JLINK_TO_USART
#define RT_BSP_LED_PIN 13
16
/* end of Onboard Peripheral Drivers */
Thomas_Fly's avatar
Thomas_Fly 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

/* On-chip Peripheral Drivers */

#define BSP_USING_GPIO
#define BSP_USING_UART
#define NRFX_USING_UART
#define BSP_USING_UART0
#define BSP_UART0_RX_PIN 8
#define BSP_UART0_TX_PIN 6

/* MCU flash config */

#define MCU_FLASH_START_ADDRESS 0x00000000
#define MCU_FLASH_SIZE_KB 1024
#define MCU_SRAM_START_ADDRESS 0x20000000
#define MCU_SRAM_SIZE_KB 256
#define MCU_FLASH_PAGE_SIZE 0x1000
34 35
/* end of MCU flash config */
/* end of On-chip Peripheral Drivers */
Thomas_Fly's avatar
Thomas_Fly 已提交
36 37 38 39 40 41 42
#define BLE_STACK_USING_NULL
#define NRFX_CLOCK_ENABLED 1
#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#define NRFX_UART_ENABLED 1
#define NRFX_UART0_ENABLED 1
#define NRFX_GPIOTE_ENABLED 1
43
/* end of Hardware Drivers Config */
Thomas_Fly's avatar
Thomas_Fly 已提交
44

S
supperthomas 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58
/* RT-Thread Kernel */

#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
#define RT_USING_TIMER_SOFT
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_STACK_SIZE 512
Thomas_Fly's avatar
Thomas_Fly 已提交
59 60 61

/* kservice optimization */

62
/* end of kservice optimization */
S
supperthomas 已提交
63 64 65 66 67 68

/* Inter-Thread communication */

#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
69
/* end of Inter-Thread communication */
S
supperthomas 已提交
70 71 72 73 74

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
75
#define RT_USING_SMALL_MEM_AS_HEAP
S
supperthomas 已提交
76
#define RT_USING_HEAP
77
/* end of Memory Management */
S
supperthomas 已提交
78 79 80 81 82 83 84

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
85
/* end of Kernel Device Object */
mysterywolf's avatar
mysterywolf 已提交
86
#define RT_VER_NUM 0x40100
87
/* end of RT-Thread Kernel */
S
supperthomas 已提交
88 89 90 91

/* RT-Thread Components */

#define RT_USING_COMPONENTS_INIT
92 93 94
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10
S
supperthomas 已提交
95 96 97

/* C++ features */

98
/* end of C++ features */
S
supperthomas 已提交
99 100 101 102

/* Command shell */

#define RT_USING_FINSH
103 104
#define RT_USING_MSH
#define FINSH_USING_MSH
S
supperthomas 已提交
105
#define FINSH_THREAD_NAME "tshell"
106 107
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
S
supperthomas 已提交
108 109 110 111
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_CMD_SIZE 80
112 113
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
S
supperthomas 已提交
114
#define FINSH_ARG_MAX 10
115
/* end of Command shell */
S
supperthomas 已提交
116 117 118

/* Device virtual file system */

119
/* end of Device virtual file system */
S
supperthomas 已提交
120 121 122 123 124

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
125
#define RT_USING_SERIAL_V1
S
supperthomas 已提交
126 127 128 129 130
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_PIN

/* Using USB */

131 132
/* end of Using USB */
/* end of Device Drivers */
S
supperthomas 已提交
133 134 135

/* POSIX layer and C standard library */

mysterywolf's avatar
mysterywolf 已提交
136 137 138

/* POSIX (Portable Operating System Interface) layer */

139 140 141 142 143 144 145

/* Interprocess Communication (IPC) */


/* Socket is in the 'Network' category */

/* end of Interprocess Communication (IPC) */
mysterywolf's avatar
mysterywolf 已提交
146
/* end of POSIX (Portable Operating System Interface) layer */
147
/* end of POSIX layer and C standard library */
S
supperthomas 已提交
148 149 150 151 152

/* Network */

/* Socket abstraction layer */

153
/* end of Socket abstraction layer */
S
supperthomas 已提交
154 155 156

/* Network interface device */

157
/* end of Network interface device */
S
supperthomas 已提交
158 159 160

/* light weight TCP/IP stack */

161
/* end of light weight TCP/IP stack */
S
supperthomas 已提交
162 163 164

/* AT commands */

165 166
/* end of AT commands */
/* end of Network */
S
supperthomas 已提交
167 168 169

/* VBUS(Virtual Software BUS) */

170
/* end of VBUS(Virtual Software BUS) */
S
supperthomas 已提交
171 172 173

/* Utilities */

174 175
/* end of Utilities */
/* end of RT-Thread Components */
S
supperthomas 已提交
176

Thomas_Fly's avatar
Thomas_Fly 已提交
177 178
/* RT-Thread Utestcases */

179
/* end of RT-Thread Utestcases */
Thomas_Fly's avatar
Thomas_Fly 已提交
180

S
supperthomas 已提交
181 182 183 184 185 186 187 188 189
/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

190
/* end of Marvell WiFi */
S
supperthomas 已提交
191 192 193

/* Wiced WiFi */

194 195
/* end of Wiced WiFi */
/* end of Wi-Fi */
S
supperthomas 已提交
196 197 198

/* IoT Cloud */

199 200
/* end of IoT Cloud */
/* end of IoT - internet of things */
S
supperthomas 已提交
201 202 203

/* security packages */

204
/* end of security packages */
S
supperthomas 已提交
205 206 207

/* language packages */

208
/* end of language packages */
S
supperthomas 已提交
209 210 211

/* multimedia packages */

mysterywolf's avatar
mysterywolf 已提交
212
/* LVGL: powerful and easy-to-use embedded GUI library */
S
supperthomas 已提交
213

mysterywolf's avatar
mysterywolf 已提交
214
/* end of LVGL: powerful and easy-to-use embedded GUI library */
215 216 217 218

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
mysterywolf's avatar
mysterywolf 已提交
219 220 221 222

/* PainterEngine: A cross-platform graphics application framework written in C language */

/* end of PainterEngine: A cross-platform graphics application framework written in C language */
223 224
/* end of multimedia packages */

S
supperthomas 已提交
225 226
/* tools packages */

227
/* end of tools packages */
S
supperthomas 已提交
228 229 230

/* system packages */

231 232 233 234
/* enhanced kernel services */

/* end of enhanced kernel services */

Thomas_Fly's avatar
Thomas_Fly 已提交
235 236
/* acceleration: Assembly language or algorithmic acceleration packages */

237
/* end of acceleration: Assembly language or algorithmic acceleration packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
238

mysterywolf's avatar
mysterywolf 已提交
239 240 241 242
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

Thomas_Fly's avatar
Thomas_Fly 已提交
243 244
/* Micrium: Micrium software products porting for RT-Thread */

245 246
/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
S
supperthomas 已提交
247 248 249

/* peripheral libraries and drivers */

250
#define PKG_USING_NRFX
Thomas_Fly's avatar
Thomas_Fly 已提交
251
#define PKG_USING_NRFX_LATEST_VERSION
252
/* end of peripheral libraries and drivers */
S
supperthomas 已提交
253

Thomas_Fly's avatar
Thomas_Fly 已提交
254 255
/* AI packages */

256
/* end of AI packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
257

S
supperthomas 已提交
258 259 260 261
/* miscellaneous packages */

/* samples: kernel and components samples */

262
/* end of samples: kernel and components samples */
S
supperthomas 已提交
263

Thomas_Fly's avatar
Thomas_Fly 已提交
264 265
/* entertainment: terminal games and other interesting software packages */

266 267 268
/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
269

S
supperthomas 已提交
270
#endif