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

boards: model efm32 boards Kconfig

This commit is contained in:
Leandro Lanzieri 2021-09-28 19:40:32 +02:00
parent 805a77b13a
commit 0e62d83edb
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
17 changed files with 120 additions and 0 deletions

View File

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

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

View 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.

View 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.

View 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.

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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