rtconfig.h 4.7 KB
Newer Older
Z
zohar123 已提交
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
Z
zohar123 已提交
5 6 7 8 9 10 11

/* RT-Thread Kernel */

#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
Y
yanmowudi 已提交
12
#define RT_TICK_PER_SECOND 1000
Z
zohar123 已提交
13 14 15
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
16
#define RT_IDLE_HOOK_LIST_SIZE 4
Z
zohar123 已提交
17
#define IDLE_THREAD_STACK_SIZE 256
Y
yanmowudi 已提交
18 19 20

/* kservice optimization */

21
/* end of kservice optimization */
Z
zohar123 已提交
22
#define RT_DEBUG
23
#define RT_DEBUG_COLOR
Z
zohar123 已提交
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 */
Z
zohar123 已提交
33 34 35 36 37

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_MEMHEAP
Y
yanmowudi 已提交
38 39
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_MEMHEAP_AS_HEAP
Z
zohar123 已提交
40
#define RT_USING_HEAP
41
/* end of Memory Management */
Z
zohar123 已提交
42 43 44 45 46 47 48

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
49
/* end of Kernel Device Object */
Y
yanmowudi 已提交
50
#define RT_VER_NUM 0x40004
51
/* end of RT-Thread Kernel */
Y
yanmowudi 已提交
52 53 54 55
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M4
Z
zohar123 已提交
56 57 58 59 60 61 62 63 64 65

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

66
/* end of C++ features */
Z
zohar123 已提交
67 68 69 70

/* Command shell */

#define RT_USING_FINSH
Y
yanmowudi 已提交
71 72
#define RT_USING_MSH
#define FINSH_USING_MSH
Z
zohar123 已提交
73
#define FINSH_THREAD_NAME "tshell"
Y
yanmowudi 已提交
74 75
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
Z
zohar123 已提交
76 77 78 79
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_CMD_SIZE 80
Y
yanmowudi 已提交
80 81
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
Z
zohar123 已提交
82
#define FINSH_ARG_MAX 10
83
/* end of Command shell */
Z
zohar123 已提交
84 85 86

/* Device virtual file system */

87
/* end of Device virtual file system */
Z
zohar123 已提交
88 89 90 91 92 93

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
Y
yanmowudi 已提交
94 95
#define RT_USING_SERIAL_V1
#define RT_SERIAL_RB_BUFSZ 64
Z
zohar123 已提交
96 97 98 99
#define RT_USING_PIN

/* Using USB */

100 101
/* end of Using USB */
/* end of Device Drivers */
Z
zohar123 已提交
102 103 104

/* POSIX layer and C standard library */

Y
yanmowudi 已提交
105 106 107
#define RT_USING_LIBC
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
108
/* end of POSIX layer and C standard library */
Z
zohar123 已提交
109 110 111 112 113

/* Network */

/* Socket abstraction layer */

114
/* end of Socket abstraction layer */
Z
zohar123 已提交
115

Y
yanmowudi 已提交
116
/* Network interface device */
Z
zohar123 已提交
117

118
/* end of Network interface device */
Z
zohar123 已提交
119

Y
yanmowudi 已提交
120
/* light weight TCP/IP stack */
Z
zohar123 已提交
121

122
/* end of light weight TCP/IP stack */
Z
zohar123 已提交
123 124 125

/* AT commands */

126 127
/* end of AT commands */
/* end of Network */
Z
zohar123 已提交
128 129 130

/* VBUS(Virtual Software BUS) */

131
/* end of VBUS(Virtual Software BUS) */
Z
zohar123 已提交
132 133 134

/* Utilities */

135 136
/* end of Utilities */
/* end of RT-Thread Components */
Z
zohar123 已提交
137

Y
yanmowudi 已提交
138 139
/* RT-Thread Utestcases */

140
/* end of RT-Thread Utestcases */
Y
yanmowudi 已提交
141

Z
zohar123 已提交
142 143 144 145 146 147 148 149 150
/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

151
/* end of Marvell WiFi */
Z
zohar123 已提交
152 153 154

/* Wiced WiFi */

155 156
/* end of Wiced WiFi */
/* end of Wi-Fi */
Z
zohar123 已提交
157 158 159

/* IoT Cloud */

160 161
/* end of IoT Cloud */
/* end of IoT - internet of things */
Z
zohar123 已提交
162 163 164

/* security packages */

165
/* end of security packages */
Z
zohar123 已提交
166 167 168

/* language packages */

169
/* end of language packages */
Z
zohar123 已提交
170 171 172 173

/* multimedia packages */


174 175 176 177 178 179 180 181 182
/* lvgl: powerful and easy-to-use embedded GUI library */

/* end of lvgl: powerful and easy-to-use embedded GUI library */

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */
/* end of multimedia packages */

Z
zohar123 已提交
183 184
/* tools packages */

185
/* end of tools packages */
Z
zohar123 已提交
186 187 188

/* system packages */

Y
yanmowudi 已提交
189
/* acceleration: Assembly language or algorithmic acceleration packages */
Z
zohar123 已提交
190

191
/* end of acceleration: Assembly language or algorithmic acceleration packages */
Z
zohar123 已提交
192

Y
yanmowudi 已提交
193
/* Micrium: Micrium software products porting for RT-Thread */
Z
zohar123 已提交
194

195 196
/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
Z
zohar123 已提交
197

Y
yanmowudi 已提交
198
/* peripheral libraries and drivers */
Z
zohar123 已提交
199

200
/* end of peripheral libraries and drivers */
Z
zohar123 已提交
201

Y
yanmowudi 已提交
202
/* AI packages */
Z
zohar123 已提交
203

204
/* end of AI packages */
Z
zohar123 已提交
205

Y
yanmowudi 已提交
206
/* miscellaneous packages */
Z
zohar123 已提交
207

Y
yanmowudi 已提交
208
/* samples: kernel and components samples */
Z
zohar123 已提交
209

210
/* end of samples: kernel and components samples */
Z
zohar123 已提交
211

Y
yanmowudi 已提交
212
/* entertainment: terminal games and other interesting software packages */
213

214 215 216
/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
Z
zohar123 已提交
217

Y
yanmowudi 已提交
218
/* Hardware Drivers Config */
Z
zohar123 已提交
219

Y
yanmowudi 已提交
220
#define SOC_SWM320
Z
zohar123 已提交
221

Y
yanmowudi 已提交
222
/* On-chip Peripheral Drivers */
Z
zohar123 已提交
223

Y
yanmowudi 已提交
224 225 226
#define BSP_USING_UART
#define BSP_USING_UART0
#define BSP_USING_GPIO
227
/* end of On-chip Peripheral Drivers */
Z
zohar123 已提交
228 229 230

/* Onboard Peripheral Drivers */

231
/* end of Onboard Peripheral Drivers */
Z
zohar123 已提交
232 233 234

/* Offboard Peripheral Drivers */

235
/* end of Hardware Drivers Config */
Z
zohar123 已提交
236 237

#endif