mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #15470 from basilfx/feature/efm32_driver_coretemp_feature
cpu/efm32: model efm32_coretemp as a feature
This commit is contained in:
commit
0695389dc2
@ -7,4 +7,5 @@
|
||||
config BOARD_COMMON_SILABS
|
||||
bool
|
||||
select HAS_ARDUINO
|
||||
select HAS_EFM32_CORETEMP
|
||||
select HAS_RIOTBOOT
|
||||
|
@ -2,4 +2,5 @@ CPU = efm32
|
||||
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += arduino
|
||||
FEATURES_PROVIDED += efm32_coretemp
|
||||
FEATURES_PROVIDED += riotboot
|
||||
|
@ -18,4 +18,5 @@ config BOARD_IKEA_TRADFRI
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
select HAS_EFM32_CORETEMP
|
||||
select HAS_RIOTBOOT
|
||||
|
@ -12,3 +12,4 @@ FEATURES_PROVIDED += periph_uart periph_uart_modecfg
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
FEATURES_PROVIDED += riotboot
|
||||
FEATURES_PROVIDED += efm32_coretemp
|
||||
|
@ -33,6 +33,12 @@ 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
|
||||
|
@ -44,3 +44,6 @@ endif
|
||||
ifneq (,$(filter cortexm_mpu,$(FEATURES_USED)))
|
||||
USEMODULE += mpu_stack_guard
|
||||
endif
|
||||
|
||||
# use efm32_coretemp if the feature is used
|
||||
USEMODULE += $(filter efm32_coretemp, $(FEATURES_USED))
|
||||
|
@ -1,17 +1,6 @@
|
||||
BOARD ?= sltb001a
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_WHITELIST := ikea-tradfri \
|
||||
slstk3401a \
|
||||
slstk3402a \
|
||||
sltb001a \
|
||||
slwstk6000b-slwrb4150a \
|
||||
slwstk6000b-slwrb4162a \
|
||||
slwstk6220a \
|
||||
stk3200 \
|
||||
stk3600 \
|
||||
stk3700
|
||||
|
||||
USEMODULE += efm32_coretemp
|
||||
FEATURES_REQUIRED += efm32_coretemp
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user