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:
parent
805a77b13a
commit
0e62d83edb
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user