rtconfig.h 5.5 KB
Newer Older
V
Vincent-VG 已提交
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
V
Vincent-VG 已提交
5 6 7 8 9 10 11 12 13 14 15

/* 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
16
#define RT_IDLE_HOOK_LIST_SIZE 4
17
#define IDLE_THREAD_STACK_SIZE 1024
18 19 20 21

/* kservice optimization */

/* end of kservice optimization */
V
Vincent-VG 已提交
22
#define RT_DEBUG
23
#define RT_DEBUG_COLOR
V
Vincent-VG 已提交
24 25 26 27 28 29 30 31

/* 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 */
V
Vincent-VG 已提交
33 34 35 36 37

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
38
#define RT_USING_SMALL_MEM_AS_HEAP
V
Vincent-VG 已提交
39
#define RT_USING_HEAP
40
/* end of Memory Management */
V
Vincent-VG 已提交
41 42 43 44 45 46 47

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 256
#define RT_CONSOLE_DEVICE_NAME "uart2"
48
/* end of Kernel Device Object */
mysterywolf's avatar
mysterywolf 已提交
49
#define RT_VER_NUM 0x40100
50
/* end of RT-Thread Kernel */
V
Vincent-VG 已提交
51
#define ARCH_ARM
52
#define RT_USING_CPU_FFS
V
Vincent-VG 已提交
53 54 55 56 57 58 59 60 61 62 63 64
#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 */
V
Vincent-VG 已提交
66 67 68 69

/* Command shell */

#define RT_USING_FINSH
70 71
#define RT_USING_MSH
#define FINSH_USING_MSH
V
Vincent-VG 已提交
72
#define FINSH_THREAD_NAME "tshell"
73 74
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
V
Vincent-VG 已提交
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
V
Vincent-VG 已提交
81
#define FINSH_ARG_MAX 10
82
/* end of Command shell */
V
Vincent-VG 已提交
83 84 85

/* Device virtual file system */

86
/* end of Device virtual file system */
V
Vincent-VG 已提交
87 88 89 90 91

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
92
#define RT_USING_SERIAL_V1
V
Vincent-VG 已提交
93
#define RT_SERIAL_USING_DMA
94
#define RT_SERIAL_RB_BUFSZ 64
V
Vincent-VG 已提交
95
#define RT_USING_PIN
96
#define RT_USING_PM
97
#define PM_TICKLESS_THRESHOLD_TIME 2
98
#define RT_USING_RTC
V
Vincent-VG 已提交
99 100 101

/* Using USB */

102 103
/* end of Using USB */
/* end of Device Drivers */
V
Vincent-VG 已提交
104 105 106

/* POSIX layer and C standard library */

G
GW 已提交
107
#define RT_USING_LIBC
108 109
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
mysterywolf's avatar
mysterywolf 已提交
110 111 112

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

113 114 115 116 117 118 119

/* Interprocess Communication (IPC) */


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

/* end of Interprocess Communication (IPC) */
mysterywolf's avatar
mysterywolf 已提交
120
/* end of POSIX (Portable Operating System Interface) layer */
121
/* end of POSIX layer and C standard library */
V
Vincent-VG 已提交
122 123 124 125 126

/* Network */

/* Socket abstraction layer */

127
/* end of Socket abstraction layer */
V
Vincent-VG 已提交
128

129 130
/* Network interface device */

131
/* end of Network interface device */
132

V
Vincent-VG 已提交
133 134
/* light weight TCP/IP stack */

135
/* end of light weight TCP/IP stack */
V
Vincent-VG 已提交
136 137 138

/* AT commands */

139 140
/* end of AT commands */
/* end of Network */
V
Vincent-VG 已提交
141 142 143

/* VBUS(Virtual Software BUS) */

144
/* end of VBUS(Virtual Software BUS) */
V
Vincent-VG 已提交
145 146 147

/* Utilities */

148 149 150 151 152 153
/* end of Utilities */
/* end of RT-Thread Components */

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
V
Vincent-VG 已提交
154 155 156 157 158 159 160 161 162 163

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

164
/* end of Marvell WiFi */
V
Vincent-VG 已提交
165 166 167

/* Wiced WiFi */

168 169
/* end of Wiced WiFi */
/* end of Wi-Fi */
V
Vincent-VG 已提交
170 171 172

/* IoT Cloud */

173 174
/* end of IoT Cloud */
/* end of IoT - internet of things */
V
Vincent-VG 已提交
175 176 177

/* security packages */

178
/* end of security packages */
V
Vincent-VG 已提交
179 180 181

/* language packages */

182
/* end of language packages */
V
Vincent-VG 已提交
183 184 185

/* multimedia packages */

mysterywolf's avatar
mysterywolf 已提交
186
/* LVGL: powerful and easy-to-use embedded GUI library */
V
Vincent-VG 已提交
187

mysterywolf's avatar
mysterywolf 已提交
188
/* end of LVGL: powerful and easy-to-use embedded GUI library */
189 190 191 192

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
mysterywolf's avatar
mysterywolf 已提交
193 194 195 196

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

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

V
Vincent-VG 已提交
199 200
/* tools packages */

201
/* end of tools packages */
V
Vincent-VG 已提交
202 203 204

/* system packages */

205 206 207 208
/* enhanced kernel services */

/* end of enhanced kernel services */

209 210 211 212
/* acceleration: Assembly language or algorithmic acceleration packages */

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

mysterywolf's avatar
mysterywolf 已提交
213 214 215 216
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

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

217 218 219 220
/* Micrium: Micrium software products porting for RT-Thread */

/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
V
Vincent-VG 已提交
221 222 223

/* peripheral libraries and drivers */

224
/* end of peripheral libraries and drivers */
V
Vincent-VG 已提交
225

226
/* AI packages */
V
Vincent-VG 已提交
227

228 229 230
/* end of AI packages */

/* miscellaneous packages */
V
Vincent-VG 已提交
231 232 233

/* samples: kernel and components samples */

234 235 236 237 238 239 240
/* 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 */
V
Vincent-VG 已提交
241 242 243 244 245 246 247 248 249 250
#define SOC_FAMILY_STM32
#define SOC_SERIES_STM32L4

/* Hardware Drivers Config */

#define SOC_STM32L476RG

/* Onboard Peripheral Drivers */

#define BSP_USING_STLINK_TO_USART
251
/* end of Onboard Peripheral Drivers */
V
Vincent-VG 已提交
252 253 254 255 256 257

/* On-chip Peripheral Drivers */

#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART2
258
/* end of On-chip Peripheral Drivers */
V
Vincent-VG 已提交
259 260 261

/* Board extended module Drivers */

262
/* end of Hardware Drivers Config */
V
Vincent-VG 已提交
263 264

#endif