Merge pull request #3062 from yangjie11/yj_kconfig_com

[bsp]解除组件初始化与使用user main的依赖,并修改相应的 Kconfig
This commit is contained in:
Bernard Xiong 2019-09-15 09:35:42 +08:00 committed by GitHub
commit 6db1bd4516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
92 changed files with 286 additions and 20 deletions

View File

@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_TINA
bool
select ARCH_ARM_ARM9
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -29,4 +29,9 @@ source "$ENV_DIR/tools/scripts/cmds/Kconfig"
source "$BSP_DIR/libraries/Kconfig"
source "$BSP_DIR/drivers/Kconfig"
select PKG_USING_REALTEK_AMEBA
config SOC_AMEBAZ
bool
select PKG_USING_REALTEK_AMEBA
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -18,6 +18,11 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_AT91SAM926
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART0
bool "Using RT_USING_UART0"
default n
@ -35,4 +40,3 @@ config RT_USING_LED
default y
help
led blink demo

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_AT91SAM926
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_DBGU
bool "Using RT_USING_DBGU"
default y

View File

@ -26,6 +26,12 @@ config ENV_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_AM335X
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART1
bool "Using RT_USING_UART1"
default y

View File

@ -21,6 +21,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_CK802
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
if RT_USING_SERIAL
config RT_USING_UART1

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_DM365
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
comment "BSP configure"
config RT_USING_GPIO_DEVICE

View File

@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_ES32F0334LT
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "drivers/Kconfig"

View File

@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_ES32F0654LT
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "drivers/Kconfig"

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_GD32303E
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_USART0
bool "Using USART0"
select RT_USING_SERIAL

View File

@ -21,6 +21,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_GD32450Z
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config BSP_USING_SDRAM
bool "Using sdram"
default y

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_GD32E230K
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_USART0
bool "Using USART0"
select RT_USING_SERIAL

View File

@ -18,3 +18,9 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "board/Kconfig"
config SOC_GD32VF103
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -18,6 +18,11 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_GK710
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
choice
prompt "Device type"

View File

@ -17,3 +17,9 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_FE310
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -26,6 +26,12 @@ config ENV_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_MCIMX6X4
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART1
bool "Using RT_USING_UART1"
default y

View File

@ -24,3 +24,9 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "$BSP_DIR/drivers/Kconfig"
config SOC_MCIMX6X4
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_IMXRT1052CVL5B
bool
select SOC_MIMXRT1050_SERIES
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_IMXRT1052CVL5B
bool
select SOC_MIMXRT1050_SERIES
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"

View File

@ -8,6 +8,8 @@ config SOC_MIMXRT1052DVL6B
bool
select SOC_MIMXRT1050_SERIES
select BSP_USING_HYPERFLASH
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"

View File

@ -13,6 +13,8 @@ config SOC_MIMXRT1064DVL6A
bool
select SOC_MIMXRT1064_SERIES
select BSP_USING_4MFLASH
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"

View File

@ -22,6 +22,8 @@ config BOARD_K210_EVB
bool
select ARCH_RISCV64
select PKG_USING_KENDRYTE_SDK
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "driver/Kconfig"

View File

@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_LPC1114
bool
select ARCH_ARM_CORTEX_M0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
#source "$BSP_DIR/drivers/Kconfig"

View File

@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_LPC4088
bool
select ARCH_ARM_CORTEX_M4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_LPC54114
bool
select ARCH_ARM_CORTEX_M4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_LPC54608
bool
select ARCH_ARM_CORTEX_M4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -1,6 +1,5 @@
mainmenu "RT-Thread Configuration"
config BSP_DIR
string
option env="BSP_ROOT"
@ -19,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_1C300
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_SELF_BOOT
bool "Enable RT-Thread run without bootloader"
default n

View File

@ -18,3 +18,9 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "drivers/Kconfig"
config SOC_MM32L073
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -18,3 +18,9 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "drivers/Kconfig"
config SOC_MM32L373
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -18,3 +18,9 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_NRF52832
bool
select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y

View File

@ -18,8 +18,13 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_M051
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART0
bool "Using Uart0"
select RT_USING_SERIAL
default y
default y

View File

@ -23,3 +23,8 @@ source "$PKGS_DIR/Kconfig"
source "$BSP_DIR/driver/Kconfig"
config SOC_M487
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_VEXPRESS_A9
bool
select ARCH_ARM_CORTEX_A9
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_VEXPRESS_GEMINI
bool
select ARCH_ARM_CORTEX_A9
select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config BCM2836_SOC
bool
select ARCH_ARM_CORTEX_A7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "driver/Kconfig"

View File

@ -25,6 +25,8 @@ config SOC_VEGA_RI5CY
config BOARD_X_FRDM_VEGA
bool
select SOC_VEGA_RI5CY
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "driver/Kconfig"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F091RC
bool
select SOC_SERIES_STM32F0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103RB
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F207VE
bool
select SOC_SERIES_STM32F2
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F407ZG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F767IG
bool
select SOC_SERIES_STM32F7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32H743II
bool
select SOC_SERIES_STM32H7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L475VE
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L475VE
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F072RB
bool
select SOC_SERIES_STM32F0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F091RC
bool
select SOC_SERIES_STM32F0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103RB
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103ZE
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103ZE
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103C8
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103ZE
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103C8
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103ZE
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103C8
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F103RC
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F107VC
bool
select SOC_SERIES_STM32F1
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F401RE
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F405RG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F407ZG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F407VG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F411RE
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F429BI
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F429IG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F429IG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F446ZE
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F469NI
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F746NG
bool
select SOC_SERIES_STM32F7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F767IG
bool
select SOC_SERIES_STM32F7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F767IG
bool
select SOC_SERIES_STM32F7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32F767ZI
bool
select SOC_SERIES_STM32F7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32G071RB
bool
select SOC_SERIES_STM32G0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32H743II
bool
select SOC_SERIES_STM32H7
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L053R8
bool
select SOC_SERIES_STM32L0
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L432KC
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L452RE
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L475VE
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L475VG
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L476RG
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L496VG
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
config SOC_STM32L4R9AI
bool
select SOC_SERIES_STM32L4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"

View File

@ -24,3 +24,9 @@ config SOC_STM32F2
default y
source "$BSP_DIR/Drivers/Kconfig"
config SOC_STM32F20X
bool
# select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y

View File

@ -23,3 +23,8 @@ source "$PKGS_DIR/Kconfig"
source "$BSP_DIR/drivers/Kconfig"
config SOC_STM32F429
bool
select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_STM32H743
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART1
bool "Using uart1"
select RT_USING_SERIAL

View File

@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_SWM320VET7
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
source "drivers/Kconfig"

View File

@ -8,7 +8,7 @@ config BSP_DIR
config RTT_DIR
string
option env="RTT_ROOT"
default "../.."
default "../../.."
config PKGS_DIR
string
@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
config SOC_EMSK
bool
select ARCH_ARC_EM
select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y
source "$BSP_DIR/drivers/Kconfig"

View File

@ -18,6 +18,12 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_TM4C129
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_UART0
bool "Using RT_USING_UART0"
default y

View File

@ -21,6 +21,8 @@ config PKGS_DIR
config SOC_TMS320F28X
bool
select ARCH_TIDSP_C28X
select RT_USING_COMPONENTS_INIT
# select RT_USING_USER_MAIN
default y
source "$RTT_DIR/Kconfig"

View File

@ -27,3 +27,9 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "$ENV_DIR/tools/scripts/cmds/Kconfig"
source "$BSP_DIR/drivers/Kconfig"
config SOC_W60X
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

View File

@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
config BOARD_X1000_REALBOARD
bool
select ARCH_MIPS_XBURST
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
config RT_USING_HARD_FLOAT

View File

@ -1,14 +1,13 @@
menu "RT-Thread Components"
config RT_USING_COMPONENTS_INIT
bool "Use components automatically initialization"
default y
if RT_USING_COMPONENTS_INIT
config RT_USING_USER_MAIN
bool "The main() function as user entry function"
default y
bool
default n
config RT_USING_USER_MAIN
bool
default n
if RT_USING_USER_MAIN
config RT_MAIN_THREAD_STACK_SIZE
int "Set main thread stack size"
@ -19,7 +18,6 @@ if RT_USING_COMPONENTS_INIT
default 10 if RT_THREAD_PRIORITY_32
default 85 if RT_THREAD_PRIORITY_256
endif
endif
source "$RTT_DIR/components/cplusplus/Kconfig"

View File

@ -6,9 +6,6 @@ src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
if GetDepend('RT_USING_COMPONENTS_INIT') == False:
SrcRemove(src, ['components.c'])
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['module.c'])

View File

@ -126,6 +126,7 @@ void rt_components_init(void)
}
#endif
}
#endif /* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_USER_MAIN
@ -173,10 +174,11 @@ void main_thread_entry(void *parameter)
{
extern int main(void);
extern int $Super$$main(void);
#ifdef RT_USING_COMPONENTS_INIT
/* RT-Thread components initialization */
rt_components_init();
#endif
#ifdef RT_USING_SMP
rt_hw_secondary_cpu_up();
#endif
@ -254,4 +256,3 @@ int rtthread_startup(void)
return 0;
}
#endif
#endif