1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #14483 from leandrolanzieri/pr/kconfig/samd5x_based_symbols

boards/same54-xpro: Model features in Kconfig
This commit is contained in:
Alexandre Abadie 2020-07-16 16:38:21 +02:00 committed by GitHub
commit a4129d0f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config BOARD
default "same54-xpro" if BOARD_SAME54_XPRO
config BOARD_SAME54_XPRO
bool
default y
select CPU_MODEL_SAME54P20A
select HAS_PERIPH_DAC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT

View File

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

View File

@ -132,6 +132,7 @@ BOARD_WHITELIST += 6lowpan-clicker \
remote-reva \
remote-revb \
ruuvitag \
same54-xpro \
samr21-xpro \
slstk3401a \
slstk3402a \