diff --git a/.vscode/settings.json b/.vscode/settings.json index d0cd0692f..f7fc4c48a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,7 @@ "files.exclude": { "**/.git": true, "**/build": true, - "bsp" : true, + //"bsp" : true, }, "editor.renderWhitespace": "all" } diff --git a/bsp/stm32f10x-HAL/.config b/bsp/stm32f10x-HAL/.config index 3f583f6b3..cfa2abe52 100644 --- a/bsp/stm32f10x-HAL/.config +++ b/bsp/stm32f10x-HAL/.config @@ -13,13 +13,22 @@ CONFIG_RT_THREAD_PRIORITY_32=y # CONFIG_RT_THREAD_PRIORITY_256 is not set CONFIG_RT_THREAD_PRIORITY_MAX=32 CONFIG_RT_TICK_PER_SECOND=100 -CONFIG_RT_DEBUG=y CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_DEBUG_INIT=0 -CONFIG_RT_DEBUG_THREAD=0 CONFIG_RT_USING_HOOK=y +CONFIG_RT_IDEL_HOOK_LIST_SIZE=4 CONFIG_IDLE_THREAD_STACK_SIZE=256 # CONFIG_RT_USING_TIMER_SOFT is not set +CONFIG_RT_DEBUG=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set # # Inter-Thread communication @@ -47,6 +56,7 @@ CONFIG_RT_USING_HEAP=y # Kernel Device Object # CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set # CONFIG_RT_USING_INTERRUPT_INFO is not set CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 @@ -58,6 +68,8 @@ CONFIG_RT_CONSOLE_DEVICE_NAME="uart1" # CONFIG_RT_USING_COMPONENTS_INIT=y CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 # # C++ features @@ -73,6 +85,7 @@ CONFIG_FINSH_USING_HISTORY=y CONFIG_FINSH_HISTORY_LINES=5 CONFIG_FINSH_USING_SYMTAB=y CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set CONFIG_FINSH_THREAD_PRIORITY=20 CONFIG_FINSH_THREAD_STACK_SIZE=4096 CONFIG_FINSH_CMD_SIZE=80 @@ -80,6 +93,7 @@ CONFIG_FINSH_CMD_SIZE=80 CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_USING_MSH_DEFAULT=y CONFIG_FINSH_USING_MSH_ONLY=y +CONFIG_FINSH_ARG_MAX=10 # # Device virtual file system @@ -90,12 +104,14 @@ CONFIG_FINSH_USING_MSH_ONLY=y # Device Drivers # CONFIG_RT_USING_DEVICE_IPC=y +CONFIG_RT_PIPE_BUFSZ=512 CONFIG_RT_USING_SERIAL=y # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_HWTIMER is not set # CONFIG_RT_USING_CPUTIME is not set # CONFIG_RT_USING_I2C is not set CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_PWM is not set # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_RTC is not set @@ -103,6 +119,7 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set # CONFIG_RT_USING_WIFI is not set +# CONFIG_RT_USING_AUDIO is not set # # Using USB @@ -117,9 +134,14 @@ CONFIG_RT_USING_LIBC=y # CONFIG_RT_USING_PTHREADS is not set # -# Network stack +# Network # +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + # # light weight TCP/IP stack # @@ -131,9 +153,9 @@ CONFIG_RT_USING_LIBC=y # CONFIG_RT_USING_MODBUS is not set # -# RT-Thread UI Engine +# AT commands # -# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_RT_USING_AT is not set # # VBUS(Virtual Software BUS) @@ -153,6 +175,12 @@ CONFIG_RT_USING_LIBC=y # # system packages # + +# +# RT-Thread GUI Engine +# +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_LWEXT4 is not set # CONFIG_PKG_USING_PARTITION is not set # CONFIG_PKG_USING_SQLITE is not set # CONFIG_PKG_USING_RTI is not set @@ -185,6 +213,7 @@ CONFIG_RT_USING_LIBC=y # CONFIG_PKG_USING_WLAN_WICED is not set # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set # # security packages @@ -217,6 +246,8 @@ CONFIG_RT_USING_LIBC=y # # CONFIG_PKG_USING_FASTLZ is not set # CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set # # example package: hello @@ -256,7 +287,7 @@ CONFIG_RT_USING_LIBC=y # CONFIG_STM32F103CB is not set # CONFIG_STM32F103R8 is not set # CONFIG_STM32F103RB is not set -CONFIG_STM32F103RC=y +# CONFIG_STM32F103RC is not set # CONFIG_STM32F103RD is not set # CONFIG_STM32F103RE is not set # CONFIG_STM32F103RF is not set @@ -264,7 +295,7 @@ CONFIG_STM32F103RC=y # CONFIG_STM32F103T8 is not set # CONFIG_STM32F103TB is not set # CONFIG_STM32F103V8 is not set -# CONFIG_STM32F103VB is not set +CONFIG_STM32F103VB=y # CONFIG_STM32F103VC is not set # CONFIG_STM32F103VD is not set # CONFIG_STM32F103VE is not set @@ -290,4 +321,3 @@ CONFIG_RT_HSE_VALUE=8000000 CONFIG_RT_USING_UART1=y # CONFIG_RT_USING_UART2 is not set # CONFIG_RT_USING_UART3 is not set -# CONFIG_RT_USING_SDCARD is not set diff --git a/bsp/stm32f10x-HAL/rtconfig.h b/bsp/stm32f10x-HAL/rtconfig.h index ad9537c49..c879ce0e1 100644 --- a/bsp/stm32f10x-HAL/rtconfig.h +++ b/bsp/stm32f10x-HAL/rtconfig.h @@ -8,18 +8,14 @@ #define RT_NAME_MAX 8 #define RT_ALIGN_SIZE 4 -/* RT_THREAD_PRIORITY_8 is not set */ #define RT_THREAD_PRIORITY_32 -/* RT_THREAD_PRIORITY_256 is not set */ #define RT_THREAD_PRIORITY_MAX 32 #define RT_TICK_PER_SECOND 100 -#define RT_DEBUG #define RT_USING_OVERFLOW_CHECK -#define RT_DEBUG_INIT 0 -#define RT_DEBUG_THREAD 0 #define RT_USING_HOOK +#define RT_IDEL_HOOK_LIST_SIZE 4 #define IDLE_THREAD_STACK_SIZE 256 -/* RT_USING_TIMER_SOFT is not set */ +#define RT_DEBUG /* Inter-Thread communication */ @@ -28,36 +24,30 @@ #define RT_USING_EVENT #define RT_USING_MAILBOX #define RT_USING_MESSAGEQUEUE -/* RT_USING_SIGNALS is not set */ /* Memory Management */ #define RT_USING_MEMPOOL #define RT_USING_MEMHEAP -/* RT_USING_NOHEAP is not set */ #define RT_USING_SMALL_MEM -/* RT_USING_SLAB is not set */ -/* RT_USING_MEMHEAP_AS_HEAP is not set */ -/* RT_USING_MEMTRACE is not set */ #define RT_USING_HEAP /* Kernel Device Object */ #define RT_USING_DEVICE -/* RT_USING_INTERRUPT_INFO is not set */ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart1" -/* RT_USING_MODULE is not set */ /* 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 */ -/* RT_USING_CPLUSPLUS is not set */ /* Command shell */ @@ -70,195 +60,85 @@ #define FINSH_THREAD_PRIORITY 20 #define FINSH_THREAD_STACK_SIZE 4096 #define FINSH_CMD_SIZE 80 -/* FINSH_USING_AUTH is not set */ #define FINSH_USING_MSH #define FINSH_USING_MSH_DEFAULT #define FINSH_USING_MSH_ONLY +#define FINSH_ARG_MAX 10 /* Device virtual file system */ -/* RT_USING_DFS is not set */ /* Device Drivers */ #define RT_USING_DEVICE_IPC +#define RT_PIPE_BUFSZ 512 #define RT_USING_SERIAL -/* RT_USING_CAN is not set */ -/* RT_USING_HWTIMER is not set */ -/* RT_USING_CPUTIME is not set */ -/* RT_USING_I2C is not set */ #define RT_USING_PIN -/* RT_USING_MTD_NOR is not set */ -/* RT_USING_MTD_NAND is not set */ -/* RT_USING_RTC is not set */ -/* RT_USING_SDIO is not set */ -/* RT_USING_SPI is not set */ -/* RT_USING_WDT is not set */ -/* RT_USING_WIFI is not set */ /* Using USB */ -/* RT_USING_USB_HOST is not set */ -/* RT_USING_USB_DEVICE is not set */ /* POSIX layer and C standard library */ #define RT_USING_LIBC -/* RT_USING_PTHREADS is not set */ -/* Network stack */ +/* Network */ + +/* Socket abstraction layer */ + /* light weight TCP/IP stack */ -/* RT_USING_LWIP is not set */ /* Modbus master and slave stack */ -/* RT_USING_MODBUS is not set */ -/* RT-Thread UI Engine */ +/* AT commands */ -/* PKG_USING_GUIENGINE is not set */ /* VBUS(Virtual Software BUS) */ -/* RT_USING_VBUS is not set */ /* Utilities */ -/* RT_USING_LOGTRACE is not set */ -/* RT_USING_RYM is not set */ /* RT-Thread online packages */ /* system packages */ -/* PKG_USING_PARTITION is not set */ -/* PKG_USING_SQLITE is not set */ -/* PKG_USING_RTI is not set */ +/* RT-Thread GUI Engine */ + /* IoT - internet of things */ -/* PKG_USING_PAHOMQTT is not set */ -/* PKG_USING_WEBCLIENT is not set */ -/* PKG_USING_MONGOOSE is not set */ -/* PKG_USING_WEBTERMINAL is not set */ -/* PKG_USING_CJSON is not set */ -/* PKG_USING_LJSON is not set */ -/* PKG_USING_EZXML is not set */ -/* PKG_USING_NANOPB is not set */ -/* PKG_USING_GAGENT_CLOUD is not set */ /* Wi-Fi */ /* Marvell WiFi */ -/* PKG_USING_WLANMARVELL is not set */ /* Wiced WiFi */ -/* PKG_USING_WLAN_WICED is not set */ -/* PKG_USING_COAP is not set */ -/* PKG_USING_NOPOLL is not set */ /* security packages */ -/* PKG_USING_MBEDTLS is not set */ -/* PKG_USING_libsodium is not set */ -/* PKG_USING_TINYCRYPT is not set */ /* language packages */ -/* PKG_USING_JERRYSCRIPT is not set */ -/* PKG_USING_MICROPYTHON is not set */ /* multimedia packages */ -/* PKG_USING_OPENMV is not set */ /* tools packages */ -/* PKG_USING_CMBACKTRACE is not set */ -/* PKG_USING_EASYLOGGER is not set */ -/* PKG_USING_SYSTEMVIEW is not set */ -/* PKG_USING_IPERF is not set */ /* miscellaneous packages */ -/* PKG_USING_FASTLZ is not set */ -/* PKG_USING_MINILZO is not set */ /* example package: hello */ -/* PKG_USING_HELLO is not set */ -/* STM32F100RC is not set */ -/* STM32F100RD is not set */ -/* STM32F100RE is not set */ -/* STM32F100VC is not set */ -/* STM32F100VD is not set */ -/* STM32F100VE is not set */ -/* STM32F100ZC is not set */ -/* STM32F100ZD is not set */ -/* STM32F100ZE is not set */ -/* STM32F101CB is not set */ -/* STM32F101RB is not set */ -/* STM32F101RC is not set */ -/* STM32F101RD is not set */ -/* STM32F101RE is not set */ -/* STM32F101RF is not set */ -/* STM32F101RG is not set */ -/* STM32F101TB is not set */ -/* STM32F101VB is not set */ -/* STM32F101VC is not set */ -/* STM32F101VD is not set */ -/* STM32F101VE is not set */ -/* STM32F101VF is not set */ -/* STM32F101VG is not set */ -/* STM32F101ZC is not set */ -/* STM32F101ZD is not set */ -/* STM32F101ZE is not set */ -/* STM32F101ZF is not set */ -/* STM32F101ZG is not set */ -/* STM32F102CB is not set */ -/* STM32F102RB is not set */ -/* STM32F103C8 is not set */ -/* STM32F103CB is not set */ -/* STM32F103R8 is not set */ -/* STM32F103RB is not set */ -#define STM32F103RC -/* STM32F103RD is not set */ -/* STM32F103RE is not set */ -/* STM32F103RF is not set */ -/* STM32F103RG is not set */ -/* STM32F103T8 is not set */ -/* STM32F103TB is not set */ -/* STM32F103V8 is not set */ -/* STM32F103VB is not set */ -/* STM32F103VC is not set */ -/* STM32F103VD is not set */ -/* STM32F103VE is not set */ -/* STM32F103VF is not set */ -/* STM32F103VG is not set */ -/* STM32F103ZC is not set */ -/* STM32F103ZD is not set */ -/* STM32F103ZE is not set */ -/* STM32F103ZF is not set */ -/* STM32F103ZG is not set */ -/* STM32F105R8 is not set */ -/* STM32F105RB is not set */ -/* STM32F105RC is not set */ -/* STM32F105V8 is not set */ -/* STM32F105VB is not set */ -/* STM32F105VC is not set */ -/* STM32F107RB is not set */ -/* STM32F107RC is not set */ -/* STM32F107VB is not set */ -/* STM32F107VC is not set */ -/* RT_USING_HSI is not set */ +#define STM32F103VB #define RT_HSE_VALUE 8000000 #define RT_USING_UART1 -/* RT_USING_UART2 is not set */ -/* RT_USING_UART3 is not set */ -/* RT_USING_SDCARD is not set */ #endif diff --git a/bsp/stm32f4xx-HAL/.config b/bsp/stm32f4xx-HAL/.config index 8be1f1789..b38bee87c 100644 --- a/bsp/stm32f4xx-HAL/.config +++ b/bsp/stm32f4xx-HAL/.config @@ -13,13 +13,22 @@ CONFIG_RT_THREAD_PRIORITY_32=y # CONFIG_RT_THREAD_PRIORITY_256 is not set CONFIG_RT_THREAD_PRIORITY_MAX=32 CONFIG_RT_TICK_PER_SECOND=100 -CONFIG_RT_DEBUG=y CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_DEBUG_INIT=0 -CONFIG_RT_DEBUG_THREAD=0 CONFIG_RT_USING_HOOK=y +CONFIG_RT_IDEL_HOOK_LIST_SIZE=4 CONFIG_IDLE_THREAD_STACK_SIZE=256 # CONFIG_RT_USING_TIMER_SOFT is not set +CONFIG_RT_DEBUG=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set # # Inter-Thread communication @@ -40,12 +49,14 @@ CONFIG_RT_USING_MEMHEAP=y CONFIG_RT_USING_SMALL_MEM=y # CONFIG_RT_USING_SLAB is not set # CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set CONFIG_RT_USING_HEAP=y # # Kernel Device Object # CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set # CONFIG_RT_USING_INTERRUPT_INFO is not set CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 @@ -57,6 +68,8 @@ CONFIG_RT_CONSOLE_DEVICE_NAME="uart2" # CONFIG_RT_USING_COMPONENTS_INIT=y CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 # # C++ features @@ -67,9 +80,12 @@ CONFIG_RT_USING_USER_MAIN=y # Command shell # CONFIG_RT_USING_FINSH=y +CONFIG_FINSH_THREAD_NAME="tshell" CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 CONFIG_FINSH_USING_SYMTAB=y CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set CONFIG_FINSH_THREAD_PRIORITY=20 CONFIG_FINSH_THREAD_STACK_SIZE=4096 CONFIG_FINSH_CMD_SIZE=80 @@ -77,6 +93,7 @@ CONFIG_FINSH_CMD_SIZE=80 CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_USING_MSH_DEFAULT=y CONFIG_FINSH_USING_MSH_ONLY=y +CONFIG_FINSH_ARG_MAX=10 # # Device virtual file system @@ -87,11 +104,14 @@ CONFIG_FINSH_USING_MSH_ONLY=y # Device Drivers # CONFIG_RT_USING_DEVICE_IPC=y +CONFIG_RT_PIPE_BUFSZ=512 CONFIG_RT_USING_SERIAL=y # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set # CONFIG_RT_USING_I2C is not set CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_PWM is not set # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_RTC is not set @@ -99,6 +119,7 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set # CONFIG_RT_USING_WIFI is not set +# CONFIG_RT_USING_AUDIO is not set # # Using USB @@ -113,9 +134,14 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_PTHREADS is not set # -# Network stack +# Network # +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + # # light weight TCP/IP stack # @@ -127,9 +153,9 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_MODBUS is not set # -# RT-Thread UI Engine +# AT commands # -# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_RT_USING_AT is not set # # VBUS(Virtual Software BUS) @@ -149,41 +175,83 @@ CONFIG_RT_USING_PIN=y # # system packages # + +# +# RT-Thread GUI Engine +# +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_LWEXT4 is not set # CONFIG_PKG_USING_PARTITION is not set # CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set # # IoT - internet of things # -# CONFIG_PKG_USING_CJSON is not set # CONFIG_PKG_USING_PAHOMQTT is not set # CONFIG_PKG_USING_WEBCLIENT is not set # CONFIG_PKG_USING_MONGOOSE is not set # CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set # # security packages # # CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_libsodium is not set +# CONFIG_PKG_USING_TINYCRYPT is not set # # language packages # # CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set # # multimedia packages # +# CONFIG_PKG_USING_OPENMV is not set # # tools packages # # CONFIG_PKG_USING_CMBACKTRACE is not set # CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_IPERF is not set # # miscellaneous packages # +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set + +# +# example package: hello +# # CONFIG_PKG_USING_HELLO is not set # CONFIG_SOC_STM32F405RG is not set # CONFIG_SOC_STM32F405VG is not set @@ -191,7 +259,7 @@ CONFIG_RT_USING_PIN=y # CONFIG_SOC_STM32F415RG is not set # CONFIG_SOC_STM32F415VG is not set # CONFIG_SOC_STM32F415ZG is not set -CONFIG_SOC_STM32F407VG=y +# CONFIG_SOC_STM32F407VG is not set # CONFIG_SOC_STM32F407VE is not set # CONFIG_SOC_STM32F407ZG is not set # CONFIG_SOC_STM32F407ZE is not set @@ -257,7 +325,7 @@ CONFIG_SOC_STM32F407VG=y # CONFIG_SOC_STM32F411RC is not set # CONFIG_SOC_STM32F411VC is not set # CONFIG_SOC_STM32F411CE is not set -# CONFIG_SOC_STM32F411RE is not set +CONFIG_SOC_STM32F411RE=y # CONFIG_SOC_STM32F411VE is not set # CONFIG_SOC_STM32F446MC is not set # CONFIG_SOC_STM32F446ME is not set @@ -316,8 +384,14 @@ CONFIG_SOC_STM32F407VG=y # CONFIG_SOC_STM32F423VH is not set # CONFIG_SOC_STM32F423ZH is not set # CONFIG_RT_USING_HSI is not set +# CONFIG_BSP_HSE_BY_PASS is not set CONFIG_RT_HSE_VALUE=8000000 CONFIG_RT_HSE_HCLK=168000000 # CONFIG_RT_USING_UART1 is not set CONFIG_RT_USING_UART2=y # CONFIG_RT_USING_UART6 is not set +# CONFIG_BSP_USING_PWM1 is not set +# CONFIG_BSP_USING_PWM2 is not set +# CONFIG_BSP_USING_PWM3 is not set +# CONFIG_BSP_USING_PWM4 is not set +# CONFIG_BSP_USING_PWM5 is not set diff --git a/bsp/stm32f4xx-HAL/rtconfig.h b/bsp/stm32f4xx-HAL/rtconfig.h index 8fe06d171..ea862e657 100644 --- a/bsp/stm32f4xx-HAL/rtconfig.h +++ b/bsp/stm32f4xx-HAL/rtconfig.h @@ -8,18 +8,14 @@ #define RT_NAME_MAX 8 #define RT_ALIGN_SIZE 4 -/* RT_THREAD_PRIORITY_8 is not set */ #define RT_THREAD_PRIORITY_32 -/* RT_THREAD_PRIORITY_256 is not set */ #define RT_THREAD_PRIORITY_MAX 32 #define RT_TICK_PER_SECOND 100 -#define RT_DEBUG #define RT_USING_OVERFLOW_CHECK -#define RT_DEBUG_INIT 0 -#define RT_DEBUG_THREAD 0 #define RT_USING_HOOK +#define RT_IDEL_HOOK_LIST_SIZE 4 #define IDLE_THREAD_STACK_SIZE 256 -/* RT_USING_TIMER_SOFT is not set */ +#define RT_DEBUG /* Inter-Thread communication */ @@ -28,271 +24,121 @@ #define RT_USING_EVENT #define RT_USING_MAILBOX #define RT_USING_MESSAGEQUEUE -/* RT_USING_SIGNALS is not set */ /* Memory Management */ #define RT_USING_MEMPOOL #define RT_USING_MEMHEAP -/* RT_USING_NOHEAP is not set */ #define RT_USING_SMALL_MEM -/* RT_USING_SLAB is not set */ -/* RT_USING_MEMHEAP_AS_HEAP is not set */ #define RT_USING_HEAP /* Kernel Device Object */ #define RT_USING_DEVICE -/* RT_USING_INTERRUPT_INFO is not set */ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart2" -/* RT_USING_MODULE is not set */ /* 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 */ -/* RT_USING_CPLUSPLUS is not set */ /* Command shell */ #define RT_USING_FINSH +#define FINSH_THREAD_NAME "tshell" #define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 #define FINSH_USING_SYMTAB #define FINSH_USING_DESCRIPTION #define FINSH_THREAD_PRIORITY 20 #define FINSH_THREAD_STACK_SIZE 4096 #define FINSH_CMD_SIZE 80 -/* FINSH_USING_AUTH is not set */ #define FINSH_USING_MSH #define FINSH_USING_MSH_DEFAULT #define FINSH_USING_MSH_ONLY +#define FINSH_ARG_MAX 10 /* Device virtual file system */ -/* RT_USING_DFS is not set */ /* Device Drivers */ #define RT_USING_DEVICE_IPC +#define RT_PIPE_BUFSZ 512 #define RT_USING_SERIAL -/* RT_USING_CAN is not set */ -/* RT_USING_HWTIMER is not set */ -/* RT_USING_I2C is not set */ #define RT_USING_PIN -/* RT_USING_MTD_NOR is not set */ -/* RT_USING_MTD_NAND is not set */ -/* RT_USING_RTC is not set */ -/* RT_USING_SDIO is not set */ -/* RT_USING_SPI is not set */ -/* RT_USING_WDT is not set */ -/* RT_USING_WIFI is not set */ /* Using USB */ -/* RT_USING_USB_HOST is not set */ -/* RT_USING_USB_DEVICE is not set */ /* POSIX layer and C standard library */ -/* RT_USING_LIBC is not set */ -/* RT_USING_PTHREADS is not set */ -/* Network stack */ +/* Network */ + +/* Socket abstraction layer */ + /* light weight TCP/IP stack */ -/* RT_USING_LWIP is not set */ /* Modbus master and slave stack */ -/* RT_USING_MODBUS is not set */ -/* RT-Thread UI Engine */ +/* AT commands */ -/* PKG_USING_GUIENGINE is not set */ /* VBUS(Virtual Software BUS) */ -/* RT_USING_VBUS is not set */ /* Utilities */ -/* RT_USING_LOGTRACE is not set */ -/* RT_USING_RYM is not set */ /* RT-Thread online packages */ /* system packages */ -/* PKG_USING_PARTITION is not set */ -/* PKG_USING_SQLITE is not set */ +/* RT-Thread GUI Engine */ + /* IoT - internet of things */ -/* PKG_USING_CJSON is not set */ -/* PKG_USING_PAHOMQTT is not set */ -/* PKG_USING_WEBCLIENT is not set */ -/* PKG_USING_MONGOOSE is not set */ -/* PKG_USING_WEBTERMINAL is not set */ + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + /* security packages */ -/* PKG_USING_MBEDTLS is not set */ /* language packages */ -/* PKG_USING_JERRYSCRIPT is not set */ /* multimedia packages */ + /* tools packages */ -/* PKG_USING_CMBACKTRACE is not set */ -/* PKG_USING_EASYLOGGER is not set */ /* miscellaneous packages */ -/* PKG_USING_HELLO is not set */ -/* SOC_STM32F405RG is not set */ -/* SOC_STM32F405VG is not set */ -/* SOC_STM32F405ZG is not set */ -/* SOC_STM32F415RG is not set */ -/* SOC_STM32F415VG is not set */ -/* SOC_STM32F415ZG is not set */ -#define SOC_STM32F407VG -/* SOC_STM32F407VE is not set */ -/* SOC_STM32F407ZG is not set */ -/* SOC_STM32F407ZE is not set */ -/* SOC_STM32F407IG is not set */ -/* SOC_STM32F407IE is not set */ -/* SOC_STM32F417VG is not set */ -/* SOC_STM32F417VE is not set */ -/* SOC_STM32F417ZG is not set */ -/* SOC_STM32F417ZE is not set */ -/* SOC_STM32F417IG is not set */ -/* SOC_STM32F417IE is not set */ -/* SOC_STM32F427VG is not set */ -/* SOC_STM32F427VI is not set */ -/* SOC_STM32F427ZG is not set */ -/* SOC_STM32F427ZI is not set */ -/* SOC_STM32F427IG is not set */ -/* SOC_STM32F427II is not set */ -/* SOC_STM32F437VG is not set */ -/* SOC_STM32F437VI is not set */ -/* SOC_STM32F437ZG is not set */ -/* SOC_STM32F437ZI is not set */ -/* SOC_STM32F437IG is not set */ -/* SOC_STM32F437II is not set */ -/* SOC_STM32F429VG is not set */ -/* SOC_STM32F429VI is not set */ -/* SOC_STM32F429ZG is not set */ -/* SOC_STM32F429ZI is not set */ -/* SOC_STM32F429BG is not set */ -/* SOC_STM32F429BI is not set */ -/* SOC_STM32F429NG is not set */ -/* SOC_STM32F429NI is not set */ -/* SOC_STM32F429IG is not set */ -/* SOC_STM32F429II is not set */ -/* SOC_STM32F439VG is not set */ -/* SOC_STM32F439VI is not set */ -/* SOC_STM32F439ZG is not set */ -/* SOC_STM32F439ZI is not set */ -/* SOC_STM32F439BG is not set */ -/* SOC_STM32F439BI is not set */ -/* SOC_STM32F439NG is not set */ -/* SOC_STM32F439NI is not set */ -/* SOC_STM32F439IG is not set */ -/* SOC_STM32F439II is not set */ -/* SOC_STM32F401CB is not set */ -/* SOC_STM32F401CC is not set */ -/* SOC_STM32F401RB is not set */ -/* SOC_STM32F401RC is not set */ -/* SOC_STM32F401VB is not set */ -/* SOC_STM32F401VC is not set */ -/* SOC_STM32F401CD is not set */ -/* SOC_STM32F401RD is not set */ -/* SOC_STM32F401VD is not set */ -/* SOC_STM32F401CE is not set */ -/* SOC_STM32F401RE is not set */ -/* SOC_STM32F401VE is not set */ -/* SOC_STM32F410T8 is not set */ -/* SOC_STM32F410TB is not set */ -/* SOC_STM32F410C8 is not set */ -/* SOC_STM32F410CB is not set */ -/* SOC_STM32F410R8 is not set */ -/* SOC_STM32F410RB is not set */ -/* SOC_STM32F411CC is not set */ -/* SOC_STM32F411RC is not set */ -/* SOC_STM32F411VC is not set */ -/* SOC_STM32F411CE is not set */ -/* SOC_STM32F411RE is not set */ -/* SOC_STM32F411VE is not set */ -/* SOC_STM32F446MC is not set */ -/* SOC_STM32F446ME is not set */ -/* SOC_STM32F446RC is not set */ -/* SOC_STM32F446RE is not set */ -/* SOC_STM32F446VC is not set */ -/* SOC_STM32F446VE is not set */ -/* SOC_STM32F446ZC is not set */ -/* SOC_STM32F446ZE is not set */ -/* SOC_STM32F469AI is not set */ -/* SOC_STM32F469II is not set */ -/* SOC_STM32F469BI is not set */ -/* SOC_STM32F469NI is not set */ -/* SOC_STM32F469AG is not set */ -/* SOC_STM32F469IG is not set */ -/* SOC_STM32F469BG is not set */ -/* SOC_STM32F469NG is not set */ -/* SOC_STM32F469AE is not set */ -/* SOC_STM32F469IE is not set */ -/* SOC_STM32F469BE is not set */ -/* SOC_STM32F469NE is not set */ -/* SOC_STM32F479AI is not set */ -/* SOC_STM32F479II is not set */ -/* SOC_STM32F479BI is not set */ -/* SOC_STM32F479NI is not set */ -/* SOC_STM32F479AG is not set */ -/* SOC_STM32F479IG is not set */ -/* SOC_STM32F479BG is not set */ -/* SOC_STM32F479NG is not set */ -/* SOC_STM32F412CEU is not set */ -/* SOC_STM32F412CGU is not set */ -/* SOC_STM32F412ZET is not set */ -/* SOC_STM32F412ZGT is not set */ -/* SOC_STM32F412ZEJ is not set */ -/* SOC_STM32F412ZGJ is not set */ -/* SOC_STM32F412VET is not set */ -/* SOC_STM32F412VGT is not set */ -/* SOC_STM32F412VEH is not set */ -/* SOC_STM32F412VGH is not set */ -/* SOC_STM32F412RET is not set */ -/* SOC_STM32F412RGT is not set */ -/* SOC_STM32F412REY is not set */ -/* SOC_STM32F412RGY is not set */ -/* SOC_STM32F413CH is not set */ -/* SOC_STM32F413MH is not set */ -/* SOC_STM32F413RH is not set */ -/* SOC_STM32F413VH is not set */ -/* SOC_STM32F413ZH is not set */ -/* SOC_STM32F413CG is not set */ -/* SOC_STM32F413MG is not set */ -/* SOC_STM32F413RG is not set */ -/* SOC_STM32F413VG is not set */ -/* SOC_STM32F413ZG is not set */ -/* SOC_STM32F423CH is not set */ -/* SOC_STM32F423RH is not set */ -/* SOC_STM32F423VH is not set */ -/* SOC_STM32F423ZH is not set */ -/* RT_USING_HSI is not set */ + +/* example package: hello */ + +#define SOC_STM32F411RE #define RT_HSE_VALUE 8000000 #define RT_HSE_HCLK 168000000 -/* RT_USING_UART1 is not set */ #define RT_USING_UART2 -/* RT_USING_UART6 is not set */ #endif