1 #ifndef RT_CONFIG_H__ 2 #define RT_CONFIG_H__ 3 4 #define SOC_STM32MP157A 5 6 /* RT-Thread Kernel */ 7 8 /* klibc options */ 9 10 /* rt_vsnprintf options */ 11 12 /* end of rt_vsnprintf options */ 13 14 /* rt_vsscanf options */ 15 16 /* end of rt_vsscanf options */ 17 18 /* rt_memset options */ 19 20 /* end of rt_memset options */ 21 22 /* rt_memcpy options */ 23 24 /* end of rt_memcpy options */ 25 26 /* rt_memmove options */ 27 28 /* end of rt_memmove options */ 29 30 /* rt_memcmp options */ 31 32 /* end of rt_memcmp options */ 33 34 /* rt_strstr options */ 35 36 /* end of rt_strstr options */ 37 38 /* rt_strcasecmp options */ 39 40 /* end of rt_strcasecmp options */ 41 42 /* rt_strncpy options */ 43 44 /* end of rt_strncpy options */ 45 46 /* rt_strcpy options */ 47 48 /* end of rt_strcpy options */ 49 50 /* rt_strncmp options */ 51 52 /* end of rt_strncmp options */ 53 54 /* rt_strcmp options */ 55 56 /* end of rt_strcmp options */ 57 58 /* rt_strlen options */ 59 60 /* end of rt_strlen options */ 61 62 /* rt_strnlen options */ 63 64 /* end of rt_strnlen options */ 65 /* end of klibc options */ 66 #define RT_NAME_MAX 8 67 #define RT_USING_NANO 68 #define RT_CPUS_NR 1 69 #define RT_ALIGN_SIZE 8 70 #define RT_THREAD_PRIORITY_32 71 #define RT_THREAD_PRIORITY_MAX 32 72 #define RT_TICK_PER_SECOND 100 73 #define RT_USING_OVERFLOW_CHECK 74 #define RT_USING_HOOK 75 #define RT_HOOK_USING_FUNC_PTR 76 #define RT_USING_IDLE_HOOK 77 #define RT_IDLE_HOOK_LIST_SIZE 4 78 #define IDLE_THREAD_STACK_SIZE 256 79 #define RT_USING_TIMER_SOFT 80 #define RT_TIMER_THREAD_PRIO 4 81 #define RT_TIMER_THREAD_STACK_SIZE 512 82 83 /* kservice options */ 84 85 /* end of kservice options */ 86 #define RT_USING_DEBUG 87 #define RT_DEBUGING_ASSERT 88 #define RT_DEBUGING_COLOR 89 #define RT_DEBUGING_CONTEXT 90 91 /* Inter-Thread communication */ 92 93 #define RT_USING_SEMAPHORE 94 #define RT_USING_MUTEX 95 /* end of Inter-Thread communication */ 96 97 /* Memory Management */ 98 99 #define RT_USING_MEMPOOL 100 #define RT_USING_MEMHEAP 101 #define RT_MEMHEAP_FAST_MODE 102 #define RT_USING_MEMHEAP_AS_HEAP 103 #define RT_USING_MEMHEAP_AUTO_BINDING 104 #define RT_USING_HEAP 105 /* end of Memory Management */ 106 #define RT_USING_CONSOLE 107 #define RT_CONSOLEBUF_SIZE 128 108 #define RT_CONSOLE_DEVICE_NAME "uart4" 109 #define RT_VER_NUM 0x50201 110 #define RT_BACKTRACE_LEVEL_MAX_NR 32 111 /* end of RT-Thread Kernel */ 112 #define RT_USING_HW_ATOMIC 113 #define RT_USING_CPU_FFS 114 #define ARCH_ARM 115 #define ARCH_ARM_CORTEX_M 116 #define ARCH_ARM_CORTEX_M4 117 118 /* RT-Thread Components */ 119 120 #define RT_USING_COMPONENTS_INIT 121 #define RT_USING_USER_MAIN 122 #define RT_MAIN_THREAD_STACK_SIZE 2048 123 #define RT_MAIN_THREAD_PRIORITY 10 124 #define RT_USING_MSH 125 #define RT_USING_FINSH 126 #define FINSH_USING_MSH 127 #define FINSH_THREAD_NAME "tshell" 128 #define FINSH_THREAD_PRIORITY 20 129 #define FINSH_THREAD_STACK_SIZE 4096 130 #define FINSH_USING_HISTORY 131 #define FINSH_HISTORY_LINES 5 132 #define FINSH_USING_SYMTAB 133 #define FINSH_CMD_SIZE 80 134 #define MSH_USING_BUILT_IN_COMMANDS 135 #define FINSH_USING_DESCRIPTION 136 #define FINSH_ARG_MAX 10 137 #define FINSH_USING_OPTION_COMPLETION 138 139 /* Using USB legacy version */ 140 141 /* end of Using USB legacy version */ 142 /* end of RT-Thread Components */ 143 144 /* RT-Thread Utestcases */ 145 146 /* end of RT-Thread Utestcases */ 147 148 /* RT-Thread online packages */ 149 150 /* IoT - internet of things */ 151 152 153 /* Wi-Fi */ 154 155 /* Marvell WiFi */ 156 157 /* end of Marvell WiFi */ 158 159 /* Wiced WiFi */ 160 161 /* end of Wiced WiFi */ 162 163 /* CYW43012 WiFi */ 164 165 /* end of CYW43012 WiFi */ 166 167 /* BL808 WiFi */ 168 169 /* end of BL808 WiFi */ 170 171 /* CYW43439 WiFi */ 172 173 /* end of CYW43439 WiFi */ 174 /* end of Wi-Fi */ 175 176 /* IoT Cloud */ 177 178 /* end of IoT Cloud */ 179 /* end of IoT - internet of things */ 180 181 /* security packages */ 182 183 /* end of security packages */ 184 185 /* language packages */ 186 187 /* JSON: JavaScript Object Notation, a lightweight data-interchange format */ 188 189 /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */ 190 191 /* XML: Extensible Markup Language */ 192 193 /* end of XML: Extensible Markup Language */ 194 /* end of language packages */ 195 196 /* multimedia packages */ 197 198 /* LVGL: powerful and easy-to-use embedded GUI library */ 199 200 /* end of LVGL: powerful and easy-to-use embedded GUI library */ 201 202 /* u8g2: a monochrome graphic library */ 203 204 /* end of u8g2: a monochrome graphic library */ 205 /* end of multimedia packages */ 206 207 /* tools packages */ 208 209 /* end of tools packages */ 210 211 /* system packages */ 212 213 /* enhanced kernel services */ 214 215 /* end of enhanced kernel services */ 216 217 /* acceleration: Assembly language or algorithmic acceleration packages */ 218 219 /* end of acceleration: Assembly language or algorithmic acceleration packages */ 220 221 /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 222 223 #define PKG_USING_CMSIS_CORE 224 #define PKG_USING_CMSIS_CORE_LATEST_VERSION 225 /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ 226 227 /* Micrium: Micrium software products porting for RT-Thread */ 228 229 /* end of Micrium: Micrium software products porting for RT-Thread */ 230 /* end of system packages */ 231 232 /* peripheral libraries and drivers */ 233 234 /* HAL & SDK Drivers */ 235 236 /* STM32 HAL & SDK Drivers */ 237 238 #define PKG_USING_STM32MP1_M4_HAL_DRIVER 239 #define PKG_USING_STM32MP1_M4_HAL_DRIVER_LATEST_VERSION 240 #define PKG_USING_STM32MP1_M4_CMSIS_DRIVER 241 #define PKG_USING_STM32MP1_M4_CMSIS_DRIVER_LATEST_VERSION 242 /* end of STM32 HAL & SDK Drivers */ 243 244 /* Infineon HAL Packages */ 245 246 /* end of Infineon HAL Packages */ 247 248 /* Kendryte SDK */ 249 250 /* end of Kendryte SDK */ 251 252 /* WCH HAL & SDK Drivers */ 253 254 /* end of WCH HAL & SDK Drivers */ 255 256 /* AT32 HAL & SDK Drivers */ 257 258 /* end of AT32 HAL & SDK Drivers */ 259 260 /* HC32 DDL Drivers */ 261 262 /* end of HC32 DDL Drivers */ 263 264 /* NXP HAL & SDK Drivers */ 265 266 /* end of NXP HAL & SDK Drivers */ 267 268 /* NUVOTON Drivers */ 269 270 /* end of NUVOTON Drivers */ 271 272 /* GD32 Drivers */ 273 274 /* end of GD32 Drivers */ 275 /* end of HAL & SDK Drivers */ 276 277 /* sensors drivers */ 278 279 /* end of sensors drivers */ 280 281 /* touch drivers */ 282 283 /* end of touch drivers */ 284 /* end of peripheral libraries and drivers */ 285 286 /* AI packages */ 287 288 /* end of AI packages */ 289 290 /* Signal Processing and Control Algorithm Packages */ 291 292 /* end of Signal Processing and Control Algorithm Packages */ 293 294 /* miscellaneous packages */ 295 296 /* project laboratory */ 297 298 /* end of project laboratory */ 299 300 /* samples: kernel and components samples */ 301 302 /* end of samples: kernel and components samples */ 303 304 /* entertainment: terminal games and other interesting software packages */ 305 306 /* end of entertainment: terminal games and other interesting software packages */ 307 /* end of miscellaneous packages */ 308 309 /* Arduino libraries */ 310 311 312 /* Projects and Demos */ 313 314 /* end of Projects and Demos */ 315 316 /* Sensors */ 317 318 /* end of Sensors */ 319 320 /* Display */ 321 322 /* end of Display */ 323 324 /* Timing */ 325 326 /* end of Timing */ 327 328 /* Data Processing */ 329 330 /* end of Data Processing */ 331 332 /* Data Storage */ 333 334 /* Communication */ 335 336 /* end of Communication */ 337 338 /* Device Control */ 339 340 /* end of Device Control */ 341 342 /* Other */ 343 344 /* end of Other */ 345 346 /* Signal IO */ 347 348 /* end of Signal IO */ 349 350 /* Uncategorized */ 351 352 /* end of Arduino libraries */ 353 /* end of RT-Thread online packages */ 354 #define SOC_FAMILY_STM32 355 #define SOC_SERIES_STM32MP1 356 357 #endif 358