cpu/saml21: Check CPU_MODEL to provide periph_hwrng
This commit is contained in:
parent
49aef1b678
commit
106ab65d7b
@ -2,7 +2,7 @@ CPU_ARCH = cortex-m0plus
|
|||||||
CPU_FAM = saml21
|
CPU_FAM = saml21
|
||||||
|
|
||||||
# The SAMR30 line of MCUs does not contain a TRNG
|
# The SAMR30 line of MCUs does not contain a TRNG
|
||||||
BOARDS_WITHOUT_HWRNG += samr30-xpro
|
CPU_MODELS_WITHOUT_HWRNG += samr30%
|
||||||
|
|
||||||
# Low Power SRAM is *not* retained during Backup Sleep.
|
# Low Power SRAM is *not* retained during Backup Sleep.
|
||||||
# It therefore does not fulfill the requirements of the 'backup_ram' interface.
|
# It therefore does not fulfill the requirements of the 'backup_ram' interface.
|
||||||
@ -10,7 +10,7 @@ BOARDS_WITHOUT_HWRNG += samr30-xpro
|
|||||||
# being availiable during deep sleep / backup mode will not be portable here.
|
# being availiable during deep sleep / backup mode will not be portable here.
|
||||||
FEATURES_PROVIDED += backup_ram
|
FEATURES_PROVIDED += backup_ram
|
||||||
|
|
||||||
ifeq (,$(filter $(BOARDS_WITHOUT_HWRNG),$(BOARD)))
|
ifeq (,$(filter $(CPU_MODELS_WITHOUT_HWRNG),$(CPU_MODEL)))
|
||||||
FEATURES_PROVIDED += periph_hwrng
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user