boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse CPU_MODEL

This commit is contained in:
Francisco Molina 2019-10-08 22:39:27 +02:00
parent 96cfa1d41c
commit b7783e67a8
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,14 @@
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)
FEATURES_PROVIDED += periph_adc

View File

@ -1,4 +1,2 @@
# HACK this should be deduced from the daughter board in 'common/slwstk6000b'
CPU_FAM = efr32mg1p
CPU_MODEL = efr32mg1p233f256gm48
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features

View File

@ -1,4 +1,2 @@
# HACK this should be deduced from the daughter board in 'common/slwstk6000b'
CPU_FAM = efr32mg12p
CPU_MODEL = efr32mg12p332f1024gl125
include $(RIOTBOARD)/common/slwstk6000b/Makefile.features