mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/kinetis: model Kconfig
This commit is contained in:
parent
421bc95cc6
commit
8337d6d762
@ -14,3 +14,11 @@ config BOARD_COMMON_KW41Z
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
config MODULE_BOARDS_COMMON_KW41Z
|
||||
bool
|
||||
help
|
||||
Common code for kw41z-based boards.
|
||||
|
@ -19,3 +19,6 @@ config BOARD_FRDM_K22F
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -20,3 +20,5 @@ config BOARD_FRDM_K64F
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_ADC
|
||||
|
@ -17,3 +17,8 @@ config BOARD_FRDM_KL43Z
|
||||
select HAS_PERIPH_RTT
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_MAG3110
|
||||
select HAVE_MMA8X5X
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -14,4 +14,7 @@ config BOARD_FRDM_KW41Z
|
||||
select HAS_PERIPH_SPI
|
||||
select BOARD_COMMON_KW41Z
|
||||
|
||||
select MODULE_BOARDS_COMMON_KW41Z if TEST_KCONFIG
|
||||
select HAVE_FXOS8700
|
||||
|
||||
source "$(RIOTBOARD)/common/kw41z/Kconfig"
|
||||
|
@ -20,3 +20,7 @@ config BOARD_MULLE
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_LIS3DH
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -18,3 +18,9 @@ FEATURES_PROVIDED += periph_rtt
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/mulle.config
|
||||
endif
|
||||
|
10
boards/mulle/mulle.config
Normal file
10
boards/mulle/mulle.config
Normal file
@ -0,0 +1,10 @@
|
||||
# The Mulle uses NVRAM to store persistent variables, such as boot count.
|
||||
CONFIG_MODULE_NVRAM=y
|
||||
CONFIG_MODULE_NVRAM_SPI=y
|
||||
CONFIG_MODULE_VFS=y
|
||||
CONFIG_MODULE_DEVFS=y
|
||||
CONFIG_MODULE_MTD=y
|
||||
CONFIG_MODULE_MTD_SPI_NOR=y
|
||||
|
||||
# Mulle always uses the RTT for the oscillator
|
||||
CONFIG_MODULE_PERIPH_RTT=y
|
@ -20,3 +20,6 @@ config BOARD_OPENLABS_KW41Z_MINI_256KIB
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -20,3 +20,6 @@ config BOARD_OPENLABS_KW41Z_MINI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_ADC
|
||||
select HAVE_SAUL_GPIO
|
||||
|
@ -19,3 +19,11 @@ config BOARD_PBA_D_01_KW2X
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_RIOTBOOT
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_HDC1000
|
||||
select HAVE_MAG3110
|
||||
select HAVE_MMA8X5X
|
||||
select HAVE_MPL3115A2
|
||||
select HAVE_TCS37727
|
||||
select HAVE_TMP006
|
||||
|
@ -14,4 +14,8 @@ config BOARD_PHYNODE_KW41Z
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_SPI
|
||||
|
||||
select HAVE_CCS811
|
||||
select HAVE_MMA8X5X
|
||||
select HAVE_TCS37727
|
||||
|
||||
source "$(RIOTBOARD)/common/kw41z/Kconfig"
|
||||
|
@ -12,5 +12,6 @@ config BOARD_USB_KW41Z
|
||||
default y
|
||||
select BOARD_COMMON_KW41Z
|
||||
select HAS_PERIPH_SPI
|
||||
select MODULE_BOARDS_COMMON_KW41Z if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/kw41z/Kconfig"
|
||||
|
Loading…
Reference in New Issue
Block a user