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:
parent
52a95642d5
commit
cd5a847684
@ -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
|
||||
|
@ -1,5 +1,4 @@
|
||||
CPU_CORE = cortex-m0plus
|
||||
CPU_FAM = samd21
|
||||
|
||||
FEATURES_PROVIDED += puf_sram
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
CPU_CORE = cortex-m4f
|
||||
CPU_FAM = samd5x
|
||||
|
||||
FEATURES_PROVIDED += periph_hwrng
|
||||
FEATURES_PROVIDED += backup_ram
|
||||
|
@ -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
|
||||
|
||||
|
@ -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%
|
||||
|
Loading…
Reference in New Issue
Block a user