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

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
S
sheltonyu 已提交
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 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
#define RT_USING_TIMER_SOFT
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_STACK_SIZE 512
21 22 23 24

/* kservice optimization */

/* end of kservice optimization */
S
sheltonyu 已提交
25 26 27 28 29 30 31 32 33 34
#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
35
/* end of Inter-Thread communication */
S
sheltonyu 已提交
36 37 38 39 40

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
41 42 43
#define RT_USING_MEMHEAP
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SMALL_MEM_AS_HEAP
S
sheltonyu 已提交
44
#define RT_USING_HEAP
45
/* end of Memory Management */
S
sheltonyu 已提交
46 47 48 49 50 51 52

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
53
/* end of Kernel Device Object */
mysterywolf's avatar
mysterywolf 已提交
54
#define RT_VER_NUM 0x40100
55
/* end of RT-Thread Kernel */
S
sheltonyu 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69
#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 */

70
/* end of C++ features */
S
sheltonyu 已提交
71 72 73 74

/* Command shell */

#define RT_USING_FINSH
75 76
#define RT_USING_MSH
#define FINSH_USING_MSH
S
sheltonyu 已提交
77
#define FINSH_THREAD_NAME "tshell"
78 79
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
S
sheltonyu 已提交
80 81 82 83
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_CMD_SIZE 80
84 85
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
S
sheltonyu 已提交
86
#define FINSH_ARG_MAX 10
87
/* end of Command shell */
S
sheltonyu 已提交
88 89 90

/* Device virtual file system */

91
/* end of Device virtual file system */
S
sheltonyu 已提交
92 93 94 95 96

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
97
#define RT_USING_SERIAL_V1
S
sheltonyu 已提交
98 99 100 101 102
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_PIN

/* Using USB */

103 104
/* end of Using USB */
/* end of Device Drivers */
S
sheltonyu 已提交
105 106 107 108

/* POSIX layer and C standard library */

#define RT_USING_LIBC
109 110
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
mysterywolf's avatar
mysterywolf 已提交
111 112 113

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

114 115 116 117 118 119 120

/* Interprocess Communication (IPC) */


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

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

/* Network */

/* Socket abstraction layer */

128
/* end of Socket abstraction layer */
S
sheltonyu 已提交
129 130 131

/* Network interface device */

132
/* end of Network interface device */
S
sheltonyu 已提交
133 134 135

/* light weight TCP/IP stack */

136
/* end of light weight TCP/IP stack */
S
sheltonyu 已提交
137 138 139

/* AT commands */

140 141
/* end of AT commands */
/* end of Network */
S
sheltonyu 已提交
142 143 144

/* VBUS(Virtual Software BUS) */

145
/* end of VBUS(Virtual Software BUS) */
S
sheltonyu 已提交
146 147 148

/* Utilities */

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

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
S
sheltonyu 已提交
155 156 157 158 159 160 161 162 163 164

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

165
/* end of Marvell WiFi */
S
sheltonyu 已提交
166 167 168

/* Wiced WiFi */

169 170
/* end of Wiced WiFi */
/* end of Wi-Fi */
S
sheltonyu 已提交
171 172 173

/* IoT Cloud */

174 175
/* end of IoT Cloud */
/* end of IoT - internet of things */
S
sheltonyu 已提交
176 177 178

/* security packages */

179
/* end of security packages */
S
sheltonyu 已提交
180 181 182

/* language packages */

183
/* end of language packages */
S
sheltonyu 已提交
184 185 186

/* multimedia packages */

mysterywolf's avatar
mysterywolf 已提交
187
/* LVGL: powerful and easy-to-use embedded GUI library */
S
sheltonyu 已提交
188

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

/* u8g2: a monochrome graphic library */

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

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

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

S
sheltonyu 已提交
200 201
/* tools packages */

202
/* end of tools packages */
S
sheltonyu 已提交
203 204 205

/* system packages */

206 207 208 209
/* enhanced kernel services */

/* end of enhanced kernel services */

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

/* end of acceleration: Assembly language or algorithmic acceleration packages */
S
sheltonyu 已提交
213

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

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

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

220 221
/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
222

S
sheltonyu 已提交
223 224
/* peripheral libraries and drivers */

225
/* end of peripheral libraries and drivers */
S
sheltonyu 已提交
226

227
/* AI packages */
S
sheltonyu 已提交
228

229 230 231
/* end of AI packages */

/* miscellaneous packages */
S
sheltonyu 已提交
232 233 234

/* samples: kernel and components samples */

235
/* end of samples: kernel and components samples */
236

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

239 240 241
/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
S
sheltonyu 已提交
242 243 244 245 246 247 248 249 250 251
#define SOC_FAMILY_AT32
#define SOC_SERIES_AT32F403A

/* Hardware Drivers Config */

#define SOC_AT32F403AVGT7

/* Onboard Peripheral Drivers */

#define BSP_USING_SERIAL
252
/* end of Onboard Peripheral Drivers */
S
sheltonyu 已提交
253 254 255 256 257 258 259 260

/* On-chip Peripheral Drivers */

#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
#define BSP_USING_UART2
#define BSP_USING_UART3
261 262
/* end of On-chip Peripheral Drivers */
/* end of Hardware Drivers Config */
S
sheltonyu 已提交
263 264

#endif