From 1c9a95e9550c917d3be8d6241d161e966ce1e830 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 10 Jul 2020 10:18:22 +0200 Subject: [PATCH] cpu/samd5x: Add Kconfig symbols --- cpu/samd5x/Kconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/cpu/samd5x/Kconfig b/cpu/samd5x/Kconfig index 7b86fbbc19..27210f8ffb 100644 --- a/cpu/samd5x/Kconfig +++ b/cpu/samd5x/Kconfig @@ -5,4 +5,34 @@ # directory for more details. # +config CPU_FAM_SAMD5X + bool + select CPU_COMMON_SAM0 + select CPU_CORE_CORTEX_M4F + select HAS_BACKUP_RAM + select HAS_CORTEXM_MPU + select HAS_CPU_SAMD5X + select HAS_PERIPH_HWRNG + +## CPU Models +config CPU_MODEL_SAME54P20A + bool + select CPU_FAM_SAMD5X + +## Declaration of specific features +config HAS_CPU_SAMD5X + bool + help + Indicates that a 'samd5x' cpu is being used. + +## CPU common symbols +config CPU_FAM + default "samd5x" if CPU_FAM_SAMD5X + +config CPU_MODEL + default "same54p20a" if CPU_MODEL_SAME54P20A + +config CPU + default "samd5x" if CPU_FAM_SAMD5X + source "$(RIOTCPU)/sam0_common/Kconfig"