1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/saml1x: Specify CPU_FAM only in Makefile.features

This commit is contained in:
Leandro Lanzieri 2020-07-10 10:55:50 +02:00
parent e246e7ed2a
commit 84de2d8f7b
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
3 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,3 @@
CPU_FAM = saml10
CFLAGS += -D__SAML10E16A__
include $(RIOTBOARD)/common/saml1x/Makefile.include

View File

@ -1,4 +1,3 @@
CPU_FAM = saml11
CFLAGS += -D__SAML11E16A__
include $(RIOTBOARD)/common/saml1x/Makefile.include

View File

@ -1,5 +1,12 @@
CPU_CORE = cortex-m23
CPU_FAM = saml1x
ifneq (,$(filter saml10%,$(CPU_MODEL)))
CPU_FAM = saml10
else ifneq (,$(filter saml11%,$(CPU_MODEL)))
CPU_FAM = saml11
else
$(error Unknown saml1x CPU Model: $(CPU_MODEL))
endif
FEATURES_PROVIDED += cortexm_mpu
FEATURES_PROVIDED += periph_hwrng