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

cpu/sam0_common: define CPU_FAM based on CPU_MODEL

This commit is contained in:
Benjamin Valentin 2020-08-24 15:02:33 +02:00
parent 52a95642d5
commit cd5a847684
5 changed files with 2 additions and 11 deletions

View File

@ -1,3 +1,5 @@
CPU_FAM := $(shell echo $(CPU_MODEL) | cut -c -6)
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_dma
FEATURES_PROVIDED += periph_flashpage

View File

@ -1,5 +1,4 @@
CPU_CORE = cortex-m0plus
CPU_FAM = samd21
FEATURES_PROVIDED += puf_sram

View File

@ -1,5 +1,4 @@
CPU_CORE = cortex-m4f
CPU_FAM = samd5x
FEATURES_PROVIDED += periph_hwrng
FEATURES_PROVIDED += backup_ram

View File

@ -1,13 +1,5 @@
CPU_CORE = cortex-m23
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
# TODO: The cortex-m23 MPU is not ported
# FEATURES_PROVIDED += cortexm_mpu

View File

@ -1,5 +1,4 @@
CPU_CORE = cortex-m0plus
CPU_FAM = saml21
# The SAMR30 line of MCUs does not contain a TRNG
CPU_MODELS_WITHOUT_HWRNG += samr30%