rtconfig.h 4.7 KB
Newer Older
1 2 3
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

4
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
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 */
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 */
33 34 35 36 37 38

/* Memory Management */

#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
#define RT_USING_HEAP
39
/* end of Memory Management */
40 41 42 43 44 45

/* Kernel Device Object */

#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
46
#define RT_CONSOLE_DEVICE_NAME "lpuart1"
47 48 49
/* end of Kernel Device Object */
#define RT_VER_NUM 0x40004
/* end of RT-Thread Kernel */
50 51 52 53 54 55 56 57 58 59 60 61 62 63
#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 */

64
/* end of C++ features */
65 66 67 68

/* Command shell */

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

/* Device virtual file system */

85
/* end of Device virtual file system */
86 87 88 89 90 91

/* Device Drivers */

#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
92
#define RT_USING_SERIAL_V1
93 94 95 96 97 98
#define RT_SERIAL_USING_DMA
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_PIN

/* Using USB */

99 100
/* end of Using USB */
/* end of Device Drivers */
101 102 103 104

/* POSIX layer and C standard library */

#define RT_LIBC_USING_TIME
105 106
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* end of POSIX layer and C standard library */
107 108 109 110 111

/* Network */

/* Socket abstraction layer */

112
/* end of Socket abstraction layer */
113 114 115

/* Network interface device */

116
/* end of Network interface device */
117 118 119

/* light weight TCP/IP stack */

120
/* end of light weight TCP/IP stack */
121 122 123

/* AT commands */

124 125
/* end of AT commands */
/* end of Network */
126 127 128

/* VBUS(Virtual Software BUS) */

129
/* end of VBUS(Virtual Software BUS) */
130 131 132

/* Utilities */

133 134 135 136 137 138
/* end of Utilities */
/* end of RT-Thread Components */

/* RT-Thread Utestcases */

/* end of RT-Thread Utestcases */
139 140 141 142 143 144 145 146 147 148

/* RT-Thread online packages */

/* IoT - internet of things */


/* Wi-Fi */

/* Marvell WiFi */

149
/* end of Marvell WiFi */
150 151 152

/* Wiced WiFi */

153 154
/* end of Wiced WiFi */
/* end of Wi-Fi */
155 156 157

/* IoT Cloud */

158 159
/* end of IoT Cloud */
/* end of IoT - internet of things */
160 161 162

/* security packages */

163
/* end of security packages */
164 165 166

/* language packages */

167
/* end of language packages */
168 169 170 171

/* multimedia packages */


172 173 174 175 176 177 178 179 180
/* 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 */

181 182
/* tools packages */

183
/* end of tools packages */
184 185 186

/* system packages */

187 188 189 190 191 192 193 194
/* acceleration: Assembly language or algorithmic acceleration packages */

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

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

/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
195 196 197

/* peripheral libraries and drivers */

198
/* end of peripheral libraries and drivers */
199

200 201 202
/* AI packages */

/* end of AI packages */
203

204
/* miscellaneous packages */
205 206 207

/* samples: kernel and components samples */

208 209 210 211 212 213 214
/* 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 */
215 216 217 218 219 220 221 222 223 224 225 226 227
#define SOC_FAMILY_STM32
#define SOC_SERIES_STM32G4

/* Hardware Drivers Config */

#define SOC_STM32G431RB

/* Onboard Peripheral Drivers */

/* On-chip Peripheral Drivers */

#define BSP_USING_GPIO
#define BSP_USING_UART
228
#define BSP_USING_LPUART1
229
/* end of On-chip Peripheral Drivers */
230 231 232

/* Board extended module Drivers */

233
/* end of Hardware Drivers Config */
234 235

#endif