1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17374 from MrKevinWeiss/pr/fix/kconfig/stms2

boards/stm32-based: model Kconfig
This commit is contained in:
Francisco 2021-12-15 10:29:49 +01:00 committed by GitHub
commit 31f5899c56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
58 changed files with 224 additions and 47 deletions

View File

@ -24,6 +24,8 @@ atxmega-a3bu-xplained
avr-rss2
avsextrem
bastwan
bluepill
b-l475e-iot01a
cc1352-launchpad
cc2650-launchpad
derfmega128
@ -46,6 +48,7 @@ nucleo-f429zi
nucleo-f767zi
nucleo-g071rb
nucleo-g474re
nucleo-l011k4
nucleo-l073rz
nucleo-l152re
nucleo-l433rc
@ -59,7 +62,9 @@ seeedstudio-gd32
slstk3400a
sltb001a
slwstk6220a
stm32f723e-disco
waspmote-pro
weact-f401ce
z1
"}
@ -135,7 +140,6 @@ CFCR_ARGS="--upstreambranch ${CI_BASE_COMMIT}"
get_supported_kconfig_board_app() {
local board=$1
local appdir=$2
if is_in_list "${board}" "${TEST_KCONFIG_BOARDS_AVAILABLE}"; then
if is_in_list "${appdir}" "${TEST_KCONFIG_ENFORCE_APP_GROUPS}"; then
return 0
@ -421,7 +425,7 @@ compile() {
if [ ${should_check_kconfig_hash} != 0 ]; then
if [ ${kconfig_test_hash} != ${test_hash} ]; then
echo "Hashes of binaries with and without Kconfig mismatch for ${appdir}";
echo "Hashes of binaries with and without Kconfig mismatch for ${appdir} with ${board}";
echo "Please check that all used modules are modelled in Kconfig and enabled";
kconfig_module_packages_diff ${board} ${appdir}
RES=1

View File

@ -23,7 +23,6 @@ config BOARD_ADAFRUIT_ITSYBITSY_M4
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAVE_SAUL_GPIO
select MODULE_USB_BOARD_RESET if MODULE_STDIO_CDC_ACM
select HAVE_MTD_SPI_NOR
# This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR

View File

@ -1,3 +1,4 @@
CONFIG_MODULE_USBUS=y
CONFIG_MODULE_USBUS_CDC_ACM=y
CONFIG_MODULE_STDIO_CDC_ACM=y
CONFIG_MODULE_USB_BOARD_RESET=y

View File

@ -25,4 +25,6 @@ config BOARD_ALIENTEK_PANDORA
# Clock configuration
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -32,4 +32,6 @@ config BOARD_B_L072Z_LRWAN1
# Clock configuration
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -21,3 +21,5 @@ config BOARD_BLUEPILL_STM32F030C8
select HAS_PERIPH_UART
select HAS_PERIPH_SPI
select HAS_PERIPH_RTC
select HAVE_SAUL_GPIO

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View 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

View File

@ -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"

View File

@ -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"

View File

@ -24,4 +24,6 @@ config BOARD_LOBARO_LORABOX
# Clock configuration
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -26,4 +26,6 @@ config BOARD_P_L496G_CELL02
# Clock configuration
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -26,4 +26,6 @@ config BOARD_PYBOARD
select BOARD_HAS_HSE
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -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"

View File

@ -23,4 +23,6 @@ config BOARD_STM32F0DISCOVERY
# Clock configuration
select BOARD_HAS_HSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,3 @@
CONFIG_MODULE_USBUS=y
CONFIG_MODULE_USBUS_CDC_ACM=y
CONFIG_MODULE_STDIO_CDC_ACM=y

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -26,4 +26,6 @@ config BOARD_STM32L476G_DISCO
# Clock configuration
select BOARD_HAS_LSE
select HAVE_SAUL_GPIO
source "$(RIOTBOARD)/common/stm32/Kconfig"

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -8,6 +8,7 @@ config MODULE_CORTEXM_COMMON
bool
default y if CPU_CORE_CORTEX_M
depends on TEST_KCONFIG
imply MODULE_NEWLIB_NANO
select MODULE_PERIPH
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
help
@ -141,3 +142,8 @@ config MODULE_MPU_STACK_GUARD
endmenu # Cortex-M
rsource "periph/Kconfig"
choice LIBC_IMPLEMENTATION
default MODULE_NEWLIB
default MODULE_PICOLIBC
endchoice

View File

@ -39,9 +39,3 @@ else
endif
FEATURES_PROVIDED += no_idle_thread
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_CPU_CONFIG += $(RIOTCPU)/cortexm_common/cortexm_common.config
endif

View File

@ -1,5 +0,0 @@
# all cortex MCU's use newlib as libc
CONFIG_MODULE_NEWLIB=y
# use the nano-specs of Newlib when available
CONFIG_MODULE_NEWLIB_NANO=y

View File

@ -34,6 +34,11 @@ config HAS_BOOTLOADER_STM32
help
Indicates that the stm32 bootloader is being used.
config MODULE_BOOTLOADER_STM32
bool "STM32 DFU/UART/SPI bootloader"
depends on HAS_BOOTLOADER_STM32
depends on TEST_KCONFIG
orsource "kconfigs/Kconfig.clk"
orsource "kconfigs/*/Kconfig"
orsource "kconfigs/*/Kconfig.lines"

View File

@ -7,11 +7,18 @@
#
config MODULE_ISL29020
bool "ISL29020 light sensor"
bool
prompt "ISL29020 light sensor" if !(MODULE_SAUL_DEFAULT && HAVE_ISL29020)
default y if (MODULE_SAUL_DEFAULT && HAVE_ISL29020)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
config HAVE_ISL29020
bool
help
Indicates that a isl29020 sensor is present.
menuconfig KCONFIG_USEMODULE_ISL29020
bool "Configure ISL29020 driver"
depends on USEMODULE_ISL29020

View File

@ -7,11 +7,18 @@
#
config MODULE_L3G4200D
bool "L3G4200D gyroscope"
bool
prompt "L3G4200D gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_L3G4200D)
default y if (MODULE_SAUL_DEFAULT && HAVE_L3G4200D)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
config HAVE_L3G4200D
bool
help
Indicates that a l3g4200d sensor is present.
menuconfig KCONFIG_USEMODULE_L3G4200D
bool "Configure L3G4200D driver"
depends on USEMODULE_L3G4200D

View File

@ -1,23 +1,50 @@
choice
bool "LM75A/TMP1075 temperature sensors"
optional
menuconfig MODULE_LM75
bool
prompt "LM75A/TMP1075 Temperatire Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_LM75)
default y if (MODULE_SAUL_DEFAULT && HAVE_LM75)
depends on TEST_KCONFIG
depends on HAS_PERIPH_I2C
depends on HAS_PERIPH_GPIO
depends on HAS_PERIPH_GPIO_IRQ
select MODULE_PERIPH_I2C
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
if MODULE_LM75
choice
bool "sensor variant"
default MODULE_LM75A if HAVE_LM75A
default MODULE_TMP1075 if HAVE_TMP1075
help
Only the LM75A and TMP1075 temperature sensors are supported at the time.
config MODULE_LM75A
bool "LM75A temperature sensor"
select MODULE_LM75
config MODULE_TMP1075
bool "TMP1075 extended driver"
select MODULE_LM75
endchoice
config MODULE_LM75
endif # MODULE_LM75
config HAVE_LM75
bool
depends on HAS_PERIPH_I2C
help
Indicates that a lm75a/tmp1075 sensor is present.
config HAVE_LM75A
bool
select HAVE_LM75
help
Indicates that a lm75a sensor is present.
config HAVE_TMP1075
bool
select HAVE_LM75
help
Indicates that a tmp1075 sensor is present.
menuconfig KCONFIG_USEMODULE_LM75
bool "Configure LM75 driver"

View File

@ -9,8 +9,9 @@
menuconfig MODULE_LPSXXX
bool
prompt "LPSXXX Pressure Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_LPSXXX)
depends on HAS_PERIPH_I2C
default y if (MODULE_SAUL_DEFAULT && HAVE_LPSXXX)
depends on TEST_KCONFIG
depends on HAS_PERIPH_I2C
select MODULE_PERIPH_I2C
help
Device driver for the LPSXXX pressure sensor family
@ -18,8 +19,8 @@ menuconfig MODULE_LPSXXX
if MODULE_LPSXXX
choice LPSXXX_VARIANT
bool "Model"
choice
bool "sensor variant"
default MODULE_LPS331AP if HAVE_LPS331AP
default MODULE_LPS22HB if HAVE_LPS22HB
default MODULE_LPS22HH if HAVE_LPS22HH
@ -30,6 +31,7 @@ choice LPSXXX_VARIANT
config MODULE_LPS331AP
bool "LPS331AP"
config MODULE_LPS22HB
bool "LPS22HB"
@ -65,7 +67,6 @@ endif # KCONFIG_USEMODULE_LPSXXX
config HAVE_LPSXXX
bool
select MODULE_LPSXXX if MODULE_SAUL_DEFAULT
config HAVE_LPS331AP
bool

View File

@ -6,7 +6,14 @@
#
config MODULE_LSM303DLHC
bool "LSM303DLHC 3D accelerometer/magnetometer"
bool
prompt "LSM303DLHC 3D accelerometer/magnetometer" if !(MODULE_SAUL_DEFAULT && HAVE_LSM303DLHC)
default y if (MODULE_SAUL_DEFAULT && HAVE_LSM303DLHC)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
config HAVE_LSM303DLHC
bool
help
Indicates that a lsm303dlhc sensor is present.

View File

@ -6,9 +6,16 @@
#
config MODULE_LSM6DSL
bool "LSM6DSL 3D accelerometer/gyroscope"
bool
prompt "LSM6DSL 3D accelerometer/gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_LSM6DSL)
default y if (MODULE_SAUL_DEFAULT && HAVE_LSM6DSL)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
config HAVE_LSM6DSL
bool
help
Indicates that a lsm6dsl sensor is present.

View File

@ -41,7 +41,7 @@ config MODULE_SAUL_NRF_TEMPERATURE
select MODULE_PERIPH_TEMPERATURE
config MODULE_AUTO_INIT_SAUL
bool "Auto initialize the SAUL sybsystem"
bool "Auto initialize the SAUL subsystem"
depends on MODULE_AUTO_INIT
select MODULE_SAUL_INIT_DEVS
default y

View File

@ -1,5 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_LPSXXX=y
CONFIG_MODULE_LPS331AP=y
CONFIG_MODULE_LPSXXX=y
CONFIG_MODULE_XTIMER=y