From b6642a8cb730bd9ea4e58107fcce9385755958d9 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 2 Oct 2020 20:08:25 +0200 Subject: [PATCH] cpu/samd21: add samd10 to Kconfig --- cpu/samd21/Kconfig | 6 ++++++ cpu/samd21/Kconfig.samd10 | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 cpu/samd21/Kconfig.samd10 diff --git a/cpu/samd21/Kconfig b/cpu/samd21/Kconfig index 0447148522..fa4f465e3c 100644 --- a/cpu/samd21/Kconfig +++ b/cpu/samd21/Kconfig @@ -12,6 +12,10 @@ config CPU_COMMON_SAMD21 select HAS_CPU_SAMD21 select HAS_PERIPH_GPIO_FAST_READ +config CPU_FAM_SAMD10 + bool + select CPU_COMMON_SAMD21 + config CPU_FAM_SAMD21 bool select CPU_COMMON_SAMD21 @@ -28,12 +32,14 @@ config HAS_CPU_SAMD21 ## Common CPU symbols config CPU_FAM + default "samd10" if CPU_FAM_SAMD10 default "samd21" if CPU_FAM_SAMD21 default "samr21" if CPU_FAM_SAMR21 config CPU default "samd21" if CPU_COMMON_SAMD21 +source "$(RIOTCPU)/samd21/Kconfig.samd10" source "$(RIOTCPU)/samd21/Kconfig.samd21" source "$(RIOTCPU)/samd21/Kconfig.samr21" diff --git a/cpu/samd21/Kconfig.samd10 b/cpu/samd21/Kconfig.samd10 new file mode 100644 index 0000000000..a062305e78 --- /dev/null +++ b/cpu/samd21/Kconfig.samd10 @@ -0,0 +1,37 @@ +## CPU Models +config CPU_MODEL_SAMD10C13A + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10C14A + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10D13AM + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10D13AS + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10D14AM + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10D14AS + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL_SAMD10D14AU + bool + select CPU_FAM_SAMD10 + +config CPU_MODEL + default "samd10c13a" if CPU_MODEL_SAMD10C13A + default "samd10c14a" if CPU_MODEL_SAMD10C14A + default "samd10d13am" if CPU_MODEL_SAMD10D13AM + default "samd10d13as" if CPU_MODEL_SAMD10D13AS + default "samd10d14am" if CPU_MODEL_SAMD10D14AM + default "samd10d14as" if CPU_MODEL_SAMD10D14AS + default "samd10d14au" if CPU_MODEL_SAMD10D14AU