mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16912 from leandrolanzieri/pr/cpu/efm32/model_kconfig
cpu/efm32: model kconfig
This commit is contained in:
commit
d573401319
3
.murdock
3
.murdock
@ -28,6 +28,9 @@ p-nucleo-wb55
|
||||
remote-revb
|
||||
samr21-xpro
|
||||
seeedstudio-gd32
|
||||
slstk3400a
|
||||
sltb001a
|
||||
slwstk6220a
|
||||
"}
|
||||
|
||||
: ${TEST_KCONFIG_ENFORCE_APP_GROUPS:="
|
||||
|
@ -9,3 +9,13 @@ config BOARD_COMMON_SILABS
|
||||
select HAS_ARDUINO
|
||||
select HAS_EFM32_CORETEMP
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
config MODULE_BOARDS_COMMON_SILABS
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on BOARD_COMMON_SILABS
|
||||
default y
|
||||
help
|
||||
Common silabs board code.
|
||||
|
||||
rsource "drivers/Kconfig"
|
||||
|
10
boards/common/silabs/drivers/Kconfig
Normal file
10
boards/common/silabs/drivers/Kconfig
Normal file
@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
rsource "aem/Kconfig"
|
||||
rsource "bc/Kconfig"
|
||||
rsource "pic/Kconfig"
|
13
boards/common/silabs/drivers/aem/Kconfig
Normal file
13
boards/common/silabs/drivers/aem/Kconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_SILABS_AEM
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on BOARD_COMMON_SILABS
|
||||
help
|
||||
Advanced energy monitor driver for silabs boards.
|
13
boards/common/silabs/drivers/bc/Kconfig
Normal file
13
boards/common/silabs/drivers/bc/Kconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_SILABS_BC
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on BOARD_COMMON_SILABS
|
||||
help
|
||||
Board controller driver for silabs boards.
|
15
boards/common/silabs/drivers/pic/Kconfig
Normal file
15
boards/common/silabs/drivers/pic/Kconfig
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_SILABS_PIC
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on BOARD_COMMON_SILABS
|
||||
depends on HAS_PERIPH_I2C
|
||||
select MODULE_PERIPH_I2C
|
||||
help
|
||||
Power-and-interrupt controller driver for silabs boards.
|
@ -15,5 +15,17 @@ config BOARD_COMMON_SLWSTK6000B
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SI7021
|
||||
|
||||
config MODULE_BOARD_COMMON_SLWSTK6000B
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on BOARD_COMMON_SLWSTK6000B
|
||||
select MODULE_SILABS_AEM
|
||||
select MODULE_SILABS_BC
|
||||
help
|
||||
Common code for SLWSTK6000B silabs boards.
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -20,4 +20,6 @@ config BOARD_E180_ZG120B_TB
|
||||
select HAS_EFM32_CORETEMP
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -20,3 +20,6 @@ config BOARD_IKEA_TRADFRI
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
select HAS_EFM32_CORETEMP
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_MTD_SPI_NOR
|
||||
|
@ -21,4 +21,9 @@ config BOARD_SLSTK3400A
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SI7021
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -1,4 +1,5 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += efm32_coretemp
|
||||
USEMODULE += saul_gpio
|
||||
USEMODULE += si7021
|
||||
endif
|
||||
|
@ -21,4 +21,10 @@ config BOARD_SLSTK3401A
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select MODULE_SILABS_AEM if TEST_KCONFIG
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SI7021
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -21,4 +21,10 @@ config BOARD_SLSTK3402A
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select MODULE_SILABS_AEM if TEST_KCONFIG
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SI7021
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -20,5 +20,12 @@ config BOARD_SLTB001A
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
select MODULE_SILABS_PIC if TEST_KCONFIG
|
||||
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_BMP280_I2C
|
||||
select HAVE_CCS811
|
||||
select HAVE_SI7021
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -23,4 +23,10 @@ config BOARD_SLWSTK6220A
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select MODULE_SILABS_AEM if TEST_KCONFIG
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
# additional hardware present in the board
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SI7021
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -21,4 +21,7 @@ config BOARD_STK3200
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -23,4 +23,8 @@ config BOARD_STK3600
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_SILABS_AEM if TEST_KCONFIG
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -23,4 +23,8 @@ config BOARD_STK3700
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_SILABS_AEM if TEST_KCONFIG
|
||||
select MODULE_SILABS_BC if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/silabs/Kconfig"
|
||||
|
@ -18,6 +18,9 @@ config CPU_COMMON_EFM32
|
||||
select HAS_PERIPH_WDT
|
||||
select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC
|
||||
|
||||
select PACKAGE_GECKO_SDK if TEST_KCONFIG
|
||||
select PACKAGE_CMSIS-DSP if CPU_CORE_CORTEX_M0PLUS && TEST_KCONFIG
|
||||
|
||||
config CPU_EFM32_SERIES0
|
||||
bool
|
||||
|
||||
@ -36,15 +39,19 @@ config HAS_CPU_EFM32
|
||||
help
|
||||
Indicates that the CPU being used is an EFM32.
|
||||
|
||||
## Definition of EFM32-specific drivers ##
|
||||
config HAS_EFM32_CORETEMP
|
||||
bool
|
||||
help
|
||||
Indicates that the EFM32 coretemp driver is being used.
|
||||
|
||||
## Common CPU symbols
|
||||
config CPU
|
||||
default "efm32" if CPU_COMMON_EFM32
|
||||
|
||||
config ERROR_MODULES_CONFLICT
|
||||
default "On the EFM32, the RTC and RTT map to the same hardware peripheral." if MODULE_PERIPH_RTC && MODULE_PERIPH_RTT
|
||||
depends on CPU_COMMON_EFM32
|
||||
|
||||
menu "EFM32 drivers"
|
||||
rsource "drivers/coretemp/Kconfig"
|
||||
endmenu
|
||||
|
||||
rsource "periph/Kconfig"
|
||||
|
||||
orsource "families/*/Kconfig"
|
||||
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
||||
|
@ -33,3 +33,10 @@ ifeq (1,$(EFM32_LEUART_ENABLED))
|
||||
endif
|
||||
|
||||
include $(RIOTCPU)/cortexm_common/Makefile.features
|
||||
|
||||
# Add efm32 configurations after including cortexm_common so efm32 takes precendence
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTCPU)/efm32/efm32.config
|
||||
endif
|
||||
|
19
cpu/efm32/drivers/coretemp/Kconfig
Normal file
19
cpu/efm32/drivers/coretemp/Kconfig
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_EFM32_CORETEMP
|
||||
bool "EFM32 internal temperature sensor driver"
|
||||
depends on TEST_KCONFIG
|
||||
depends on HAS_EFM32_CORETEMP
|
||||
depends on HAS_PERIPH_ADC
|
||||
select MODULE_PERIPH_ADC
|
||||
|
||||
config HAS_EFM32_CORETEMP
|
||||
bool
|
||||
select MODULE_EFM32_CORETEMP if MODULE_SAUL_DEFAULT && HAS_PERIPH_ADC
|
||||
help
|
||||
Indicates that the EFM32 coretemp driver is being used.
|
1
cpu/efm32/efm32.config
Normal file
1
cpu/efm32/efm32.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_PM_LAYERED=y
|
@ -11,6 +11,14 @@ config CPU_FAM_EFM32GG
|
||||
select CPU_EFM32_SERIES0
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFM32GG
|
||||
bool
|
||||
depends on CPU_FAM_EFM32GG
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32GG family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32GG330F512
|
||||
bool
|
||||
|
@ -10,6 +10,14 @@ config CPU_FAM_EFM32HG
|
||||
select CPU_COMMON_EFM32
|
||||
select CPU_EFM32_SERIES0
|
||||
|
||||
config MODULE_CPU_EFM32HG
|
||||
bool
|
||||
depends on CPU_FAM_EFM32HG
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32HG family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32HG210F32
|
||||
bool
|
||||
|
@ -11,6 +11,14 @@ config CPU_FAM_EFM32LG
|
||||
select CPU_EFM32_SERIES0
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFM32LG
|
||||
bool
|
||||
depends on CPU_FAM_EFM32LG
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32LG family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32LG990F256
|
||||
bool
|
||||
|
@ -12,6 +12,14 @@ config CPU_FAM_EFM32PG12B
|
||||
select HAS_PERIPH_HWRNG
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFM32PG12B
|
||||
bool
|
||||
depends on CPU_FAM_EFM32PG12B
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32PG12B family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32PG12B500F1024IM48
|
||||
bool
|
||||
|
@ -11,6 +11,14 @@ config CPU_FAM_EFM32PG1B
|
||||
select CPU_EFM32_SERIES1
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFM32PG1B
|
||||
bool
|
||||
depends on CPU_FAM_EFM32PG1B
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32PG1B family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32PG1B200F256GM48
|
||||
bool
|
||||
|
@ -10,6 +10,14 @@ config CPU_FAM_EFM32ZG
|
||||
select CPU_COMMON_EFM32
|
||||
select CPU_EFM32_SERIES0
|
||||
|
||||
config MODULE_CPU_EFM32ZG
|
||||
bool
|
||||
depends on CPU_FAM_EFM32ZG
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFM32ZG family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFM32ZG222F16
|
||||
bool
|
||||
|
@ -12,6 +12,14 @@ config CPU_FAM_EFR32MG12P
|
||||
select HAS_PERIPH_HWRNG
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFR32MG12P
|
||||
bool
|
||||
depends on CPU_FAM_EFR32MG12P
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFR32MG12P family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFR32MG12P432F1024GM68
|
||||
bool
|
||||
|
@ -11,6 +11,14 @@ config CPU_FAM_EFR32MG1B
|
||||
select CPU_EFM32_SERIES1
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFR32MG1B
|
||||
bool
|
||||
depends on CPU_FAM_EFR32MG1B
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFR32MG1B family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFR32MG1B232F256GM48
|
||||
bool
|
||||
|
@ -11,6 +11,14 @@ config CPU_FAM_EFR32MG1P
|
||||
select CPU_EFM32_SERIES1
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EFR32MG1P
|
||||
bool
|
||||
depends on CPU_FAM_EFR32MG1P
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EFR32MG1P family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EFR32MG1P632F256GM32
|
||||
bool
|
||||
|
@ -11,6 +11,14 @@ config CPU_FAM_EZR32WG
|
||||
select CPU_EFM32_SERIES0
|
||||
select HAS_CORTEXM_MPU
|
||||
|
||||
config MODULE_CPU_EZR32WG
|
||||
bool
|
||||
depends on CPU_FAM_EZR32WG
|
||||
depends on TEST_KCONFIG
|
||||
default y
|
||||
help
|
||||
EZR32WG family-specific code.
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EZR32WG230F128R68
|
||||
bool
|
||||
|
56
cpu/efm32/periph/Kconfig
Normal file
56
cpu/efm32/periph/Kconfig
Normal file
@ -0,0 +1,56 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_PERIPH
|
||||
bool
|
||||
default y
|
||||
|
||||
if MODULE_PERIPH
|
||||
|
||||
config MODULE_PERIPH_WDT_SERIES0
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES0
|
||||
default MODULE_PERIPH_WDT
|
||||
help
|
||||
WDT driver implementation for EFM32 series 0.
|
||||
|
||||
config MODULE_PERIPH_WDT_SERIES1
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES1
|
||||
default MODULE_PERIPH_WDT
|
||||
help
|
||||
WDT driver implementation for EFM32 series 1.
|
||||
|
||||
config MODULE_PERIPH_RTC_SERIES0
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES0
|
||||
default MODULE_PERIPH_RTC
|
||||
help
|
||||
RTC driver implementation for EFM32 series 0.
|
||||
|
||||
config MODULE_PERIPH_RTC_SERIES1
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES1
|
||||
default MODULE_PERIPH_RTC
|
||||
help
|
||||
RTC driver implementation for EFM32 series 1.
|
||||
|
||||
config MODULE_PERIPH_RTT_SERIES0
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES0
|
||||
default MODULE_PERIPH_RTT
|
||||
help
|
||||
RTT driver implementation for EFM32 series 0.
|
||||
|
||||
config MODULE_PERIPH_RTT_SERIES1
|
||||
bool
|
||||
depends on CPU_EFM32_SERIES1
|
||||
default MODULE_PERIPH_RTT
|
||||
help
|
||||
RTT driver implementation for EFM32 series 1.
|
||||
|
||||
endif # MODULE_PERIPH
|
@ -5,19 +5,25 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
choice
|
||||
menuconfig MODULE_BMX280
|
||||
bool "BMx280 Temperature, pressure and humidity sensors"
|
||||
optional
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
The driver supports both BME280 and BMP280 connected either via SPI or
|
||||
I2C bus. Select one combination.
|
||||
|
||||
choice
|
||||
bool "Sensor variant"
|
||||
depends on MODULE_BMX280
|
||||
default MODULE_BME280_I2C if HAVE_BME280_I2C
|
||||
default MODULE_BME280_SPI if HAVE_BME280_SPI
|
||||
default MODULE_BMP280_I2C if HAVE_BMP280_I2C
|
||||
default MODULE_BMP280_SPI if HAVE_BMP280_SPI
|
||||
|
||||
config MODULE_BME280_I2C
|
||||
bool "BME280 on I2C"
|
||||
depends on HAS_PERIPH_I2C
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_BMX280
|
||||
|
||||
config MODULE_BME280_SPI
|
||||
bool "BME280 on SPI"
|
||||
@ -25,13 +31,11 @@ config MODULE_BME280_SPI
|
||||
depends on HAS_PERIPH_GPIO
|
||||
select MODULE_PERIPH_SPI
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_BMX280
|
||||
|
||||
config MODULE_BMP280_I2C
|
||||
bool "BMP280 on I2C"
|
||||
depends on HAS_PERIPH_I2C
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_BMX280
|
||||
|
||||
config MODULE_BMP280_SPI
|
||||
bool "BMP280 on SPI"
|
||||
@ -39,10 +43,29 @@ config MODULE_BMP280_SPI
|
||||
depends on HAS_PERIPH_GPIO
|
||||
select MODULE_PERIPH_SPI
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_BMX280
|
||||
|
||||
endchoice
|
||||
|
||||
config MODULE_BMX280
|
||||
config HAVE_BME280_I2C
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a bme280 is present on the I2C bus.
|
||||
|
||||
config HAVE_BME280_SPI
|
||||
bool
|
||||
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a bme280 is present on the SPI bus.
|
||||
|
||||
config HAVE_BMP280_I2C
|
||||
bool
|
||||
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a bmp280 is present on the I2C bus.
|
||||
|
||||
config HAVE_BMP280_SPI
|
||||
bool
|
||||
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a bmp280 is present on the SPI bus.
|
||||
|
@ -26,3 +26,9 @@ config MODULE_CCS811_FULL
|
||||
- data ready and threshold interrupt handling
|
||||
- compensate gas readings using an external sensor
|
||||
- manual baseline handling
|
||||
|
||||
config HAVE_CCS811
|
||||
bool
|
||||
select MODULE_CCS811 if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a ccs811 sensor is present.
|
||||
|
@ -5,36 +5,55 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
if TEST_KCONFIG
|
||||
|
||||
choice
|
||||
bool "Si7006/13/20/21 temperature and humidity sensors"
|
||||
optional
|
||||
depends on HAS_PERIPH_I2C
|
||||
depends on TEST_KCONFIG
|
||||
|
||||
config MODULE_SI7006
|
||||
bool "SI7006"
|
||||
select MODULE_SI70XX
|
||||
|
||||
config MODULE_SI7013
|
||||
bool "SI7013"
|
||||
select MODULE_SI70XX
|
||||
|
||||
config MODULE_SI7020
|
||||
bool "SI7020"
|
||||
select MODULE_SI70XX
|
||||
|
||||
config MODULE_SI7021
|
||||
bool "SI7021"
|
||||
select MODULE_SI70XX
|
||||
|
||||
endchoice
|
||||
|
||||
config MODULE_SI70XX
|
||||
bool
|
||||
bool "Si7006/13/20/21 temperature and humidity sensors"
|
||||
depends on TEST_KCONFIG
|
||||
depends on HAS_PERIPH_I2C
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_XTIMER
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
choice
|
||||
bool "Sensor variant"
|
||||
depends on MODULE_SI70XX
|
||||
default MODULE_SI7006 if HAVE_SI7006
|
||||
default MODULE_SI7013 if HAVE_SI7013
|
||||
default MODULE_SI7020 if HAVE_SI7020
|
||||
default MODULE_SI7021 if HAVE_SI7021
|
||||
|
||||
config MODULE_SI7006
|
||||
bool "SI7006"
|
||||
|
||||
config MODULE_SI7013
|
||||
bool "SI7013"
|
||||
|
||||
config MODULE_SI7020
|
||||
bool "SI7020"
|
||||
|
||||
config MODULE_SI7021
|
||||
bool "SI7021"
|
||||
|
||||
endchoice
|
||||
|
||||
config HAVE_SI7006
|
||||
bool
|
||||
select MODULE_SI70XX if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a si7006 sensor is present.
|
||||
|
||||
config HAVE_SI7013
|
||||
bool
|
||||
select MODULE_SI70XX if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a si7013 sensor is present.
|
||||
|
||||
config HAVE_SI7020
|
||||
bool
|
||||
select MODULE_SI70XX if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a si7020 sensor is present.
|
||||
|
||||
config HAVE_SI7021
|
||||
bool
|
||||
select MODULE_SI70XX if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that a si7021 sensor is present.
|
@ -10,6 +10,7 @@ rsource "arduino_sdi_12/Kconfig"
|
||||
rsource "c25519/Kconfig"
|
||||
rsource "cayenne-lpp/Kconfig"
|
||||
rsource "cifra/Kconfig"
|
||||
rsource "cmsis-dsp/Kconfig"
|
||||
rsource "cn-cbor/Kconfig"
|
||||
rsource "driver_atwinc15x0/Kconfig"
|
||||
rsource "driver_bme680/Kconfig"
|
||||
@ -17,6 +18,7 @@ rsource "driver_sx126x/Kconfig"
|
||||
rsource "elk/Kconfig"
|
||||
rsource "emlearn/Kconfig"
|
||||
rsource "fff/Kconfig"
|
||||
rsource "gecko_sdk/Kconfig"
|
||||
rsource "gemmlowp/Kconfig"
|
||||
rsource "hacl/Kconfig"
|
||||
rsource "heatshrink/Kconfig"
|
||||
|
77
pkg/cmsis-dsp/Kconfig
Normal file
77
pkg/cmsis-dsp/Kconfig
Normal file
@ -0,0 +1,77 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config PACKAGE_CMSIS-DSP
|
||||
bool "DSP ARM CMSIS package"
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
This package uses DSP ARM CMSIS header from the official ARM github repo:
|
||||
https://github.com/ARM-software/CMSIS_5.
|
||||
|
||||
if PACKAGE_CMSIS-DSP
|
||||
|
||||
config MODULE_CMSIS-DSP_BASICMATHFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP basic math functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_COMMONTABLES
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP common tables.
|
||||
|
||||
config MODULE_CMSIS-DSP_COMPLEXMATHFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP complex math functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_CONTROLLERFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP controller functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_FASTMATHFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP fast math functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_FILTERINGFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP filtering functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_MATRIXFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP matrix functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_STATISTICSFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP statistics functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_SUPPORTFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP support functions.
|
||||
|
||||
config MODULE_CMSIS-DSP_TRANSFORMFUNCTIONS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
CMSIS DSP transform functions.
|
||||
|
||||
endif # PACKAGE_CMSIS-DSP
|
@ -5,6 +5,9 @@ PKG_LICENSE=Apache-2.0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
# include makefiles utils tools
|
||||
include $(RIOTMAKE)/utils/strings.mk
|
||||
|
||||
CMSIS_DSP_MODULES = \
|
||||
cmsis-dsp_BasicMathFunctions \
|
||||
cmsis-dsp_CommonTables \
|
||||
@ -22,4 +25,4 @@ CMSIS_DSP_MODULES = \
|
||||
all: $(CMSIS_DSP_MODULES)
|
||||
|
||||
cmsis-dsp_%:
|
||||
$(MAKE) -C $(PKG_SOURCE_DIR)/CMSIS/DSP/Source/$* -f $(CURDIR)/Makefile.cmsis-dsp MODULE=$@
|
||||
$(MAKE) -C $(PKG_SOURCE_DIR)/CMSIS/DSP/Source/$* -f $(CURDIR)/Makefile.cmsis-dsp MODULE=$(call lowercase,$@)
|
||||
|
@ -1,10 +1,10 @@
|
||||
USEMODULE += cmsis-dsp_BasicMathFunctions
|
||||
USEMODULE += cmsis-dsp_CommonTables
|
||||
USEMODULE += cmsis-dsp_ComplexMathFunctions
|
||||
USEMODULE += cmsis-dsp_ControllerFunctions
|
||||
USEMODULE += cmsis-dsp_FastMathFunctions
|
||||
USEMODULE += cmsis-dsp_FilteringFunctions
|
||||
USEMODULE += cmsis-dsp_MatrixFunctions
|
||||
USEMODULE += cmsis-dsp_StatisticsFunctions
|
||||
USEMODULE += cmsis-dsp_SupportFunctions
|
||||
USEMODULE += cmsis-dsp_TransformFunctions
|
||||
USEMODULE += cmsis-dsp_basicmathfunctions
|
||||
USEMODULE += cmsis-dsp_commontables
|
||||
USEMODULE += cmsis-dsp_complexmathfunctions
|
||||
USEMODULE += cmsis-dsp_controllerfunctions
|
||||
USEMODULE += cmsis-dsp_fastmathfunctions
|
||||
USEMODULE += cmsis-dsp_filteringfunctions
|
||||
USEMODULE += cmsis-dsp_matrixfunctions
|
||||
USEMODULE += cmsis-dsp_statisticsfunctions
|
||||
USEMODULE += cmsis-dsp_supportfunctions
|
||||
USEMODULE += cmsis-dsp_transformfunctions
|
||||
|
30
pkg/gecko_sdk/Kconfig
Normal file
30
pkg/gecko_sdk/Kconfig
Normal file
@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2021 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config PACKAGE_GECKO_SDK
|
||||
bool "Vendor library for EFM/EFR/EZR32 MCUs"
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Vendor library for EFM/EFR/EZR32 targets by Silicon Labs.
|
||||
See: https://siliconlabs.github.io/Gecko_SDK_Doc/
|
||||
|
||||
if PACKAGE_GECKO_SDK
|
||||
|
||||
config MODULE_GECKO_SDK_EMLIB
|
||||
bool
|
||||
default y
|
||||
help
|
||||
EMLIB is a low-level peripheral support library that provides a unified
|
||||
API for all EFM32, EZR32 and EFR32 MCUs and SoCs from Silicon Labs.
|
||||
|
||||
config MODULE_GECKO_SDK_EMLIB_EXTRA
|
||||
bool
|
||||
default y
|
||||
help
|
||||
Extra utility methods from EMBLIB vendor library.
|
||||
|
||||
endif # PACKAGE_GECKO_SDK
|
@ -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_BMX280=y
|
||||
CONFIG_MODULE_BME280_I2C=y
|
||||
CONFIG_MODULE_FMT=y
|
||||
CONFIG_MODULE_XTIMER=y
|
||||
|
@ -2,4 +2,5 @@
|
||||
# application configuration. This is only needed during migration.
|
||||
|
||||
# This test should also work with Si7006, Si7013 and Si7020 variants.
|
||||
CONFIG_MODULE_SI70XX=y
|
||||
CONFIG_MODULE_SI7021=y
|
||||
|
Loading…
Reference in New Issue
Block a user