rtconfig.h 5.7 KB
Newer Older
Thomas_Fly's avatar
Thomas_Fly 已提交
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
Thomas_Fly's avatar
Thomas_Fly 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

/* 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_OVERFLOW_CHECK
#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 已提交
21 22 23

/* kservice optimization */

24
/* end of kservice optimization */
Thomas_Fly's avatar
Thomas_Fly 已提交
25 26 27 28 29 30 31 32 33
#define RT_DEBUG

/* Inter-Thread communication */

#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
34
/* end of Inter-Thread communication */
Thomas_Fly's avatar
Thomas_Fly 已提交
35 36 37 38 39

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
40
#define RT_USING_SMALL_MEM_AS_HEAP
Thomas_Fly's avatar
Thomas_Fly 已提交
41
#define RT_USING_HEAP
42
/* end of Memory Management */
Thomas_Fly's avatar
Thomas_Fly 已提交
43 44 45 46 47 48 49

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
50
/* end of Kernel Device Object */
mysterywolf's avatar
mysterywolf 已提交
51
#define RT_VER_NUM 0x40100
52
/* end of RT-Thread Kernel */
Thomas_Fly's avatar
Thomas_Fly 已提交
53 54 55 56 57 58 59 60 61 62

/* RT-Thread Components */

#define RT_USING_COMPONENTS_INIT
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10

/* C++ features */

63
/* end of C++ features */
Thomas_Fly's avatar
Thomas_Fly 已提交
64 65 66 67

/* Command shell */

#define RT_USING_FINSH
68 69
#define RT_USING_MSH
#define FINSH_USING_MSH
Thomas_Fly's avatar
Thomas_Fly 已提交
70
#define FINSH_THREAD_NAME "tshell"
71 72
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
Thomas_Fly's avatar
Thomas_Fly 已提交
73 74 75 76
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_CMD_SIZE 80
77 78
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
Thomas_Fly's avatar
Thomas_Fly 已提交
79
#define FINSH_ARG_MAX 10
80
/* end of Command shell */
Thomas_Fly's avatar
Thomas_Fly 已提交
81 82 83

/* Device virtual file system */

84
/* end of Device virtual file system */
Thomas_Fly's avatar
Thomas_Fly 已提交
85 86 87 88 89

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
90
#define RT_USING_SERIAL_V1
Thomas_Fly's avatar
Thomas_Fly 已提交
91 92 93 94 95
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_PIN

/* Using USB */

96 97
/* end of Using USB */
/* end of Device Drivers */
Thomas_Fly's avatar
Thomas_Fly 已提交
98 99 100

/* POSIX layer and C standard library */

mysterywolf's avatar
mysterywolf 已提交
101 102 103

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

104 105 106 107 108 109 110

/* Interprocess Communication (IPC) */


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

/* end of Interprocess Communication (IPC) */
mysterywolf's avatar
mysterywolf 已提交
111
/* end of POSIX (Portable Operating System Interface) layer */
112
/* end of POSIX layer and C standard library */
Thomas_Fly's avatar
Thomas_Fly 已提交
113 114 115 116 117

/* Network */

/* Socket abstraction layer */

118
/* end of Socket abstraction layer */
Thomas_Fly's avatar
Thomas_Fly 已提交
119 120 121

/* Network interface device */

122
/* end of Network interface device */
Thomas_Fly's avatar
Thomas_Fly 已提交
123 124 125

/* light weight TCP/IP stack */

126
/* end of light weight TCP/IP stack */
Thomas_Fly's avatar
Thomas_Fly 已提交
127 128 129

/* AT commands */

130 131
/* end of AT commands */
/* end of Network */
Thomas_Fly's avatar
Thomas_Fly 已提交
132 133 134

/* VBUS(Virtual Software BUS) */

135
/* end of VBUS(Virtual Software BUS) */
Thomas_Fly's avatar
Thomas_Fly 已提交
136 137 138

/* Utilities */

139 140 141 142 143 144
/* end of Utilities */
/* end of RT-Thread Components */

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
Thomas_Fly's avatar
Thomas_Fly 已提交
145 146 147 148 149 150 151 152 153 154

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

155
/* end of Marvell WiFi */
Thomas_Fly's avatar
Thomas_Fly 已提交
156 157 158

/* Wiced WiFi */

159 160
/* end of Wiced WiFi */
/* end of Wi-Fi */
Thomas_Fly's avatar
Thomas_Fly 已提交
161 162 163

/* IoT Cloud */

164 165
/* end of IoT Cloud */
/* end of IoT - internet of things */
Thomas_Fly's avatar
Thomas_Fly 已提交
166 167 168

/* security packages */

169
/* end of security packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
170 171 172

/* language packages */

173
/* end of language packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
174 175 176

/* multimedia packages */

mysterywolf's avatar
mysterywolf 已提交
177
/* LVGL: powerful and easy-to-use embedded GUI library */
Thomas_Fly's avatar
Thomas_Fly 已提交
178

mysterywolf's avatar
mysterywolf 已提交
179
/* end of LVGL: powerful and easy-to-use embedded GUI library */
180 181 182 183

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
mysterywolf's avatar
mysterywolf 已提交
184 185 186 187

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

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

Thomas_Fly's avatar
Thomas_Fly 已提交
190 191
/* tools packages */

192
/* end of tools packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
193 194 195

/* system packages */

196 197 198 199
/* enhanced kernel services */

/* end of enhanced kernel services */

200 201 202
/* acceleration: Assembly language or algorithmic acceleration packages */

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

mysterywolf's avatar
mysterywolf 已提交
204 205 206 207
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

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

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

210 211
/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
212 213 214 215 216

/* peripheral libraries and drivers */

#define PKG_USING_NRFX
#define PKG_USING_NRFX_LATEST_VERSION
217
/* end of peripheral libraries and drivers */
Thomas_Fly's avatar
Thomas_Fly 已提交
218 219 220

/* AI packages */

221
/* end of AI packages */
Thomas_Fly's avatar
Thomas_Fly 已提交
222 223 224 225 226

/* miscellaneous packages */

/* samples: kernel and components samples */

227
/* end of samples: kernel and components samples */
Thomas_Fly's avatar
Thomas_Fly 已提交
228

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

231 232 233
/* 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 已提交
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254

/* Hardware Drivers Config */

#define SOC_NRF51822
#define SOC_NORDIC
#define BSP_BOARD_MICROBIT_1_5

/* On-chip Peripheral Drivers */

#define BSP_USING_UART
#define BSP_USING_UART0
#define BSP_UART0_RX_PIN 25
#define BSP_UART0_TX_PIN 24

/* On-chip flash config */

#define MCU_FLASH_START_ADDRESS 0x00000000
#define MCU_FLASH_SIZE_KB 256
#define MCU_SRAM_START_ADDRESS 0x20000000
#define MCU_SRAM_SIZE_KB 16
#define MCU_FLASH_PAGE_SIZE 0x1000
255 256
/* end of On-chip flash config */
/* end of On-chip Peripheral Drivers */
Thomas_Fly's avatar
Thomas_Fly 已提交
257 258 259 260 261 262
#define NRFX_CLOCK_ENABLED 1
#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#define NRFX_USING_UART
#define NRFX_UART_ENABLED 1
#define NRFX_UART0_ENABLED 1
263
/* end of Hardware Drivers Config */
Thomas_Fly's avatar
Thomas_Fly 已提交
264 265

#endif