boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse CPU_MODEL
This commit is contained in:
parent
96cfa1d41c
commit
b7783e67a8
@ -1,5 +1,14 @@
|
|||||||
CPU = efm32
|
CPU = efm32
|
||||||
# TODO move CPU_MODEL here based on the daughter board
|
|
||||||
|
# The radio board connected to the slwstk6000b mainboard
|
||||||
|
BOARD_MODULE = $(word 2, $(subst -, ,$(BOARD)))
|
||||||
|
|
||||||
|
include $(RIOTBOARD)/common/slwstk6000b/slwstk6000b.info.mk
|
||||||
|
CPU_MODEL = $(word 1, $(SLWSTK6000B_MAINBOARD_VARS_$(BOARD_MODULE)))
|
||||||
|
|
||||||
|
ifeq (,$(CPU_MODEL))
|
||||||
|
$(error $(BOARD_MODULE) can not be used with slwstk600b mainboard)
|
||||||
|
endif
|
||||||
|
|
||||||
# Put defined MCU peripherals here (in alphabetical order)
|
# Put defined MCU peripherals here (in alphabetical order)
|
||||||
FEATURES_PROVIDED += periph_adc
|
FEATURES_PROVIDED += periph_adc
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
# HACK this should be deduced from the daughter board in 'common/slwstk6000b'
|
|
||||||
CPU_FAM = efr32mg1p
|
CPU_FAM = efr32mg1p
|
||||||
CPU_MODEL = efr32mg1p233f256gm48
|
|
||||||
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features
|
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
# HACK this should be deduced from the daughter board in 'common/slwstk6000b'
|
|
||||||
CPU_FAM = efr32mg12p
|
CPU_FAM = efr32mg12p
|
||||||
CPU_MODEL = efr32mg12p332f1024gl125
|
|
||||||
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features
|
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user