rtconfig.h 5.7 KB
Newer Older
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17

/* 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 1000
#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
18 19 20 21

/* kservice optimization */

/* end of kservice optimization */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
22 23 24 25 26 27 28 29 30 31
#define RT_DEBUG
#define RT_DEBUG_COLOR

/* Inter-Thread communication */

#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
32
/* end of Inter-Thread communication */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
33 34 35 36 37

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
38
#define RT_USING_SMALL_MEM_AS_HEAP
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
39
#define RT_USING_HEAP
40
/* end of Memory Management */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
41 42 43 44 45 46 47

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
48
/* end of Kernel Device Object */
mysterywolf's avatar
mysterywolf 已提交
49
#define RT_VER_NUM 0x40100
50
/* end of RT-Thread Kernel */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M4

/* 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 */

65
/* end of C++ features */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
66 67 68 69

/* Command shell */

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

/* Device virtual file system */

86
/* end of Device virtual file system */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
87 88 89 90 91

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
92
#define RT_USING_SERIAL_V1
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
#define RT_SERIAL_USING_DMA
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_I2C
#define RT_USING_I2C_BITOPS
#define RT_USING_PIN
#define RT_USING_RTC
#define RT_USING_SPI
#define RT_USING_SFUD
#define RT_SFUD_USING_SFDP
#define RT_SFUD_USING_FLASH_INFO_TABLE
#define RT_SFUD_SPI_MAX_HZ 50000000
#define RT_USING_WDT

/* Using USB */

108 109
/* end of Using USB */
/* end of Device Drivers */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
110 111 112 113

/* POSIX layer and C standard library */

#define RT_USING_LIBC
114 115
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
mysterywolf's avatar
mysterywolf 已提交
116 117 118

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

119 120 121 122 123 124 125

/* Interprocess Communication (IPC) */


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

/* end of Interprocess Communication (IPC) */
mysterywolf's avatar
mysterywolf 已提交
126
/* end of POSIX (Portable Operating System Interface) layer */
127
/* end of POSIX layer and C standard library */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
128 129 130 131 132

/* Network */

/* Socket abstraction layer */

133
/* end of Socket abstraction layer */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
134 135 136

/* Network interface device */

137
/* end of Network interface device */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
138 139 140

/* light weight TCP/IP stack */

141
/* end of light weight TCP/IP stack */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
142 143 144

/* AT commands */

145 146
/* end of AT commands */
/* end of Network */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
147 148 149

/* VBUS(Virtual Software BUS) */

150
/* end of VBUS(Virtual Software BUS) */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
151 152 153

/* Utilities */

154 155 156 157 158 159
/* end of Utilities */
/* end of RT-Thread Components */

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
160 161 162 163 164 165 166 167 168 169

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

170
/* end of Marvell WiFi */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
171 172 173

/* Wiced WiFi */

174 175
/* end of Wiced WiFi */
/* end of Wi-Fi */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
176 177 178

/* IoT Cloud */

179 180
/* end of IoT Cloud */
/* end of IoT - internet of things */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
181 182 183

/* security packages */

184
/* end of security packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
185 186 187

/* language packages */

188
/* end of language packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
189 190 191

/* multimedia packages */

mysterywolf's avatar
mysterywolf 已提交
192
/* LVGL: powerful and easy-to-use embedded GUI library */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
193

mysterywolf's avatar
mysterywolf 已提交
194
/* end of LVGL: powerful and easy-to-use embedded GUI library */
195 196 197 198

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
mysterywolf's avatar
mysterywolf 已提交
199 200 201 202

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

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

瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
205 206
/* tools packages */

207
/* end of tools packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
208 209 210

/* system packages */

211 212 213 214
/* enhanced kernel services */

/* end of enhanced kernel services */

215 216 217 218
/* acceleration: Assembly language or algorithmic acceleration packages */

/* end of acceleration: Assembly language or algorithmic acceleration packages */

mysterywolf's avatar
mysterywolf 已提交
219 220 221 222
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

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

223 224 225 226
/* Micrium: Micrium software products porting for RT-Thread */

/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
227 228 229

/* peripheral libraries and drivers */

230
/* end of peripheral libraries and drivers */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
231

232 233 234
/* AI packages */

/* end of AI packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
235

236
/* miscellaneous packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
237 238 239

/* samples: kernel and components samples */

240 241 242 243 244 245 246
/* end of samples: kernel and components samples */

/* entertainment: terminal games and other interesting software packages */

/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
247 248 249 250 251 252 253 254 255 256
#define SOC_FAMILY_STM32
#define SOC_SERIES_STM32F4

/* Hardware Drivers Config */

#define SOC_STM32F411RC

/* Onboard Peripheral Drivers */

#define BSP_USING_USB_TO_USART
257
/* end of Onboard Peripheral Drivers */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
258 259 260 261 262 263 264

/* On-chip Peripheral Drivers */

#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
#define BSP_UART1_RX_USING_DMA
265
/* end of On-chip Peripheral Drivers */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
266 267 268

/* Board extended module Drivers */

269
/* end of Hardware Drivers Config */
瘋狂的毛驢's avatar
瘋狂的毛驢 已提交
270 271

#endif