mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: Fix stm32 based boards kconfig models
This commit is contained in:
parent
fbd404edfe
commit
deda2cfb97
@ -25,4 +25,6 @@ config BOARD_ALIENTEK_PANDORA
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -32,4 +32,6 @@ config BOARD_B_L072Z_LRWAN1
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -30,4 +30,10 @@ config BOARD_B_L475E_IOT01A
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_HTS221
|
||||
select HAVE_LIS3MDL
|
||||
select HAVE_LPS22HB
|
||||
select HAVE_LSM6DSL
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -13,5 +13,6 @@ config BOARD_BLACKPILL_128KIB
|
||||
default y
|
||||
select BOARD_COMMON_BLXXXPILL
|
||||
select CPU_MODEL_STM32F103CB
|
||||
select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/blxxxpill/Kconfig"
|
||||
|
@ -13,5 +13,6 @@ config BOARD_BLACKPILL
|
||||
default y
|
||||
select BOARD_COMMON_BLXXXPILL
|
||||
select CPU_MODEL_STM32F103C8
|
||||
select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/blxxxpill/Kconfig"
|
||||
|
@ -13,5 +13,6 @@ config BOARD_BLUEPILL_128KIB
|
||||
default y
|
||||
select BOARD_COMMON_BLXXXPILL
|
||||
select CPU_MODEL_STM32F103CB
|
||||
select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/blxxxpill/Kconfig"
|
||||
|
@ -21,3 +21,5 @@ config BOARD_BLUEPILL_STM32F030C8
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_RTC
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -13,5 +13,6 @@ config BOARD_BLUEPILL
|
||||
default y
|
||||
select BOARD_COMMON_BLXXXPILL
|
||||
select CPU_MODEL_STM32F103C8
|
||||
select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/blxxxpill/Kconfig"
|
||||
|
@ -22,4 +22,13 @@ config BOARD_COMMON_BLXXXPILL
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
config MODULE_BOARDS_COMMON_BLXXXPILL
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Common code of bluepill or blackpill boards
|
||||
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -22,4 +22,14 @@ config BOARD_COMMON_IOTLAB
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_L3G4200D
|
||||
select HAVE_LSM303DLHC
|
||||
|
||||
config MODULE_BOARDS_COMMON_IOTLAB
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Common code of iotlab based boards
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -5,7 +5,7 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config BOARD_COMMON_WEACT_F41XCX
|
||||
config BOARD_COMMON_WEACT_F4X1CX
|
||||
bool
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
select HAS_PERIPH_ADC
|
||||
@ -22,4 +22,13 @@ config BOARD_COMMON_WEACT_F41XCX
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_MTD_SPI_NOR
|
||||
|
||||
config MODULE_BOARDS_COMMON_WEACT-F4X1CX
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Common code of weact based boards
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -15,3 +15,9 @@ FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# weact-f4x1cx boards provide a custom default Kconfig clock configuration
|
||||
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/common/weact-f4x1cx/clock.config
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/common/weact-f4x1cx/weact-f4x1cx.config
|
||||
endif
|
||||
|
5
boards/common/weact-f4x1cx/weact-f4x1cx.config
Normal file
5
boards/common/weact-f4x1cx/weact-f4x1cx.config
Normal file
@ -0,0 +1,5 @@
|
||||
CONFIG_MODULE_BOOTLOADER_STM32=y
|
||||
CONFIG_MODULE_STDIO_CDC_ACM=y
|
||||
CONFIG_MODULE_USBUS=y
|
||||
CONFIG_MODULE_USBUS_CDC_ACM=y
|
||||
CONFIG_MODULE_USB_BOARD_RESET=y
|
@ -12,5 +12,6 @@ config BOARD_IOTLAB_A8_M3
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_IOTLAB
|
||||
select MODULE_BOARDS_COMMON_IOTLAB if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/iotlab/Kconfig"
|
||||
|
@ -14,5 +14,9 @@ config BOARD_IOTLAB_M3
|
||||
select BOARD_COMMON_IOTLAB
|
||||
|
||||
select HAS_PERIPH_DMA
|
||||
select HAVE_MTD_SPI_NOR
|
||||
select HAVE_LPS331AP
|
||||
select HAVE_ISL29020
|
||||
select MODULE_BOARDS_COMMON_IOTLAB if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/iotlab/Kconfig"
|
||||
|
@ -24,4 +24,6 @@ config BOARD_LOBARO_LORABOX
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -25,6 +25,9 @@ config BOARD_LORA_E5_DEV
|
||||
# Put other features for this board (in alphabetical order)
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_LM75A
|
||||
|
||||
config LORA_E5_DEV_ENABLE_3P3V
|
||||
bool "LoRa-E5 Development Kit - Enable 3.3V output"
|
||||
default y
|
||||
|
@ -23,4 +23,9 @@ config BOARD_NUCLEO_L011K4
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
choice LIBC_IMPLEMENTATION
|
||||
# Use Picolibc to reduce ROM usage
|
||||
default MODULE_PICOLIBC
|
||||
endchoice
|
||||
|
||||
source "$(RIOTBOARD)/common/nucleo32/Kconfig"
|
||||
|
@ -26,4 +26,6 @@ config BOARD_NUCLEO_WL55JC
|
||||
select HAS_ARDUINO
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART
|
||||
|
||||
source "$(RIOTBOARD)/common/nucleo64/Kconfig"
|
||||
|
@ -24,4 +24,6 @@ config BOARD_NZ32_SC151
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -28,4 +28,6 @@ config BOARD_OLIMEXINO_STM32
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -26,4 +26,6 @@ config BOARD_P_L496G_CELL02
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -26,4 +26,6 @@ config BOARD_PYBOARD
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -24,4 +24,9 @@ config BOARD_STM32F030F4_DEMO
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
|
||||
choice LIBC_IMPLEMENTATION
|
||||
# Use Picolibc to reduce ROM usage
|
||||
default MODULE_PICOLIBC
|
||||
endchoice
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -23,4 +23,6 @@ config BOARD_STM32F0DISCOVERY
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -25,4 +25,7 @@ config BOARD_STM32F3DISCOVERY
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_LSM303DLHC
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -28,4 +28,6 @@ config BOARD_STM32F429I_DISC1
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -13,20 +13,8 @@ config BOARD_STM32F429I_DISCO
|
||||
default y
|
||||
select CPU_MODEL_STM32F429ZI
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
select HAS_PERIPH_DMA
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_USBDEV
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
source "$(RIOTBOARD)/stm32f429i-disc1/Kconfig"
|
||||
|
@ -1,3 +1,9 @@
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
include $(RIOTBOARD)/stm32f429i-disc1/Makefile.features
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/stm32f429i-disco.config
|
||||
endif
|
||||
|
3
boards/stm32f429i-disco/stm32f429i-disco.config
Normal file
3
boards/stm32f429i-disco/stm32f429i-disco.config
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_MODULE_USBUS=y
|
||||
CONFIG_MODULE_USBUS_CDC_ACM=y
|
||||
CONFIG_MODULE_STDIO_CDC_ACM=y
|
@ -22,4 +22,6 @@ config BOARD_STM32F469I_DISCO
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -31,6 +31,8 @@ config BOARD_STM32F4DISCOVERY
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
||||
config ERROR_MODULES_CONFLICT
|
||||
|
@ -20,10 +20,16 @@ config BOARD_STM32F723E_DISCO
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_HW_FC
|
||||
select HAS_PERIPH_USBDEV
|
||||
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC
|
||||
# Workaround due to stdout only working with stdin enabled
|
||||
select MODULE_STDIN if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -9,6 +9,7 @@ FEATURES_PROVIDED += periph_rtt
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += periph_uart_hw_fc
|
||||
FEATURES_PROVIDED += periph_usbdev
|
||||
|
||||
# stm32f723e-disco provides a custom default Kconfig clock configuration
|
||||
|
@ -27,4 +27,6 @@ config BOARD_STM32F746G_DISCO
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -24,4 +24,6 @@ config BOARD_STM32F769I_DISCO
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -19,4 +19,6 @@ config BOARD_STM32L0538_DISCO
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -26,4 +26,6 @@ config BOARD_STM32L476G_DISCO
|
||||
# Clock configuration
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -21,9 +21,13 @@ config BOARD_UBLOX_C030_U201
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_HW_FC
|
||||
|
||||
# Clock configuration
|
||||
select BOARD_HAS_HSE
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
@ -9,6 +9,7 @@ FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += periph_uart_hw_fc
|
||||
|
||||
# ublox-c030-u201 provides a custom default Kconfig clock configuration
|
||||
KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/ublox-c030-u201/clock.config
|
||||
|
@ -11,7 +11,8 @@ config BOARD
|
||||
config BOARD_WEACT_F401CC
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_WEACT_F41XCX
|
||||
select BOARD_COMMON_WEACT_F4X1CX
|
||||
select CPU_MODEL_STM32F401CC
|
||||
select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig"
|
||||
|
@ -11,7 +11,8 @@ config BOARD
|
||||
config BOARD_WEACT_F401CE
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_WEACT_F41XCX
|
||||
select BOARD_COMMON_WEACT_F4X1CX
|
||||
select CPU_MODEL_STM32F401CE
|
||||
select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig"
|
||||
|
@ -11,7 +11,8 @@ config BOARD
|
||||
config BOARD_WEACT_F411CE
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_WEACT_F41XCX
|
||||
select BOARD_COMMON_WEACT_F4X1CX
|
||||
select CPU_MODEL_STM32F411CE
|
||||
select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig"
|
||||
|
Loading…
Reference in New Issue
Block a user