[bsp][stm32] add board identification macros

This commit is contained in:
褚仕成 2023-12-24 15:32:34 +08:00 committed by Meco Man
parent 712e94a3cc
commit 4a7f41531f
31 changed files with 155 additions and 0 deletions

View File

@ -22,6 +22,11 @@ config SOC_STM32F072RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F072_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F091RC
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F091_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F207ZG
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F207_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F302R8
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F302_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F334R8
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F334_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F410RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F410_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -27,6 +27,11 @@ config BOARD_STM32F411_NUCLEO
select BOARD_SERIES_STM32_NUCLEO_64 select BOARD_SERIES_STM32_NUCLEO_64
default y default y
config BOARD_STM32F411_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32F446ZE
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32F446_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32F746_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32F767_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32G070RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32G070_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32G071RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32G071_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32G431RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32G431_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32G474RE
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32G474_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32G491RE
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32G491_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32H503_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32H563_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32H743_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L010RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L010_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L053R8
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L053_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L412RB
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L412_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L432KC
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L432_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_32
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L433RC
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L433_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L452RE
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L452_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L476RG
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L476_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L496ZG
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L496_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -22,6 +22,11 @@ config SOC_STM32L4R5ZI
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config BOARD_STM32L4R5_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32L552_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32U575_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_144
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32WB55_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"

View File

@ -15,6 +15,11 @@ config PKGS_DIR
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config BOARD_STM32WL55_NUCLEO
bool
select BOARD_SERIES_STM32_NUCLEO_64
default y
source "$RTT_DIR/Kconfig" source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig" source "../libraries/Kconfig"