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

cpu/samd21: add samd10 to Kconfig

This commit is contained in:
Benjamin Valentin 2020-10-02 20:08:25 +02:00
parent a94919aeed
commit b6642a8cb7
2 changed files with 43 additions and 0 deletions

View File

@ -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"

37
cpu/samd21/Kconfig.samd10 Normal file
View File

@ -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