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

cpu/saml1x: add all parts to Kconfig

This commit is contained in:
Benjamin Valentin 2020-08-18 16:51:44 +02:00 committed by Benjamin Valentin
parent 6b7cce02ec
commit 6a490af52b
3 changed files with 67 additions and 13 deletions

View File

@ -20,15 +20,6 @@ config CPU_FAM_SAML11
bool
select CPU_COMMON_SAML1X
## CPU Models
config CPU_MODEL_SAML10E16A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML11E16A
bool
select CPU_FAM_SAML11
## Declaration of specific features
config HAS_CPU_SAML1X
bool
@ -40,11 +31,10 @@ config CPU_FAM
default "saml10" if CPU_FAM_SAML10
default "saml11" if CPU_FAM_SAML11
config CPU_MODEL
default "saml10e16a" if CPU_MODEL_SAML10E16A
default "saml11e16a" if CPU_MODEL_SAML11E16A
config CPU
default "saml1x" if CPU_COMMON_SAML1X
source "$(RIOTCPU)/saml1x/Kconfig.saml10"
source "$(RIOTCPU)/saml1x/Kconfig.saml11"
source "$(RIOTCPU)/sam0_common/Kconfig"

32
cpu/saml1x/Kconfig.saml10 Normal file
View File

@ -0,0 +1,32 @@
## CPU Models
config CPU_MODEL_SAML10D14A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML10D15A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML10D16A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML10E14A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML10E15A
bool
select CPU_FAM_SAML10
config CPU_MODEL_SAML10E16A
bool
select CPU_FAM_SAML10
config CPU_MODEL
default "saml10d14a" if CPU_MODEL_SAML10D14A
default "saml10d15a" if CPU_MODEL_SAML10D15A
default "saml10d16a" if CPU_MODEL_SAML10D16A
default "saml10e14a" if CPU_MODEL_SAML10E14A
default "saml10e15a" if CPU_MODEL_SAML10E15A
default "saml10e16a" if CPU_MODEL_SAML10E16A

32
cpu/saml1x/Kconfig.saml11 Normal file
View File

@ -0,0 +1,32 @@
## CPU Models
config CPU_MODEL_SAML11D14A
bool
select CPU_FAM_SAML11
config CPU_MODEL_SAML11D15A
bool
select CPU_FAM_SAML11
config CPU_MODEL_SAML11D16A
bool
select CPU_FAM_SAML11
config CPU_MODEL_SAML11E14A
bool
select CPU_FAM_SAML11
config CPU_MODEL_SAML11E15A
bool
select CPU_FAM_SAML11
config CPU_MODEL_SAML11E16A
bool
select CPU_FAM_SAML11
config CPU_MODEL
default "saml11d14a" if CPU_MODEL_SAML11D14A
default "saml11d15a" if CPU_MODEL_SAML11D15A
default "saml11d16a" if CPU_MODEL_SAML11D16A
default "saml11e14a" if CPU_MODEL_SAML11E14A
default "saml11e15a" if CPU_MODEL_SAML11E15A
default "saml11e16a" if CPU_MODEL_SAML11E16A