mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #14388 from leandrolanzieri/pr/kconfig/ezr32wg_board_symbols
boards/slwstk6220a: Model features provided in Kconfig
This commit is contained in:
commit
2250c67240
15
boards/slwstk6220a/Kconfig
Normal file
15
boards/slwstk6220a/Kconfig
Normal file
@ -0,0 +1,15 @@
|
||||
# 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 "slwstk6220a" if BOARD_SLWSTK6220A
|
||||
|
||||
config BOARD_SLWSTK6220A
|
||||
bool
|
||||
default y
|
||||
select CPU_MODEL_EZR32WG330F256R60
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_UART
|
37
cpu/ezr32wg/Kconfig
Normal file
37
cpu/ezr32wg/Kconfig
Normal file
@ -0,0 +1,37 @@
|
||||
# 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 CPU_FAM_EZR32WG
|
||||
bool
|
||||
select CPU_CORE_CORTEX_M4F
|
||||
select HAS_CORTEXM_MPU
|
||||
select HAS_CPU_EZR32WG
|
||||
select HAS_PERIPH_CPUID
|
||||
select HAS_PERIPH_GPIO
|
||||
select HAS_PERIPH_GPIO_IRQ
|
||||
|
||||
## CPU Models
|
||||
config CPU_MODEL_EZR32WG330F256R60
|
||||
bool
|
||||
select CPU_FAM_EZR32WG
|
||||
|
||||
## Definition of specific features
|
||||
config HAS_CPU_EZR32WG
|
||||
bool
|
||||
help
|
||||
Indicates that an 'ezr32wg' cpu is being used.
|
||||
|
||||
## Common CPU symbols
|
||||
config CPU_FAM
|
||||
default "ezr32wg" if CPU_FAM_EZR32WG
|
||||
|
||||
config CPU_MODEL
|
||||
default "ezr32wg330f256r60" if CPU_MODEL_EZR32WG330F256R60
|
||||
|
||||
config CPU
|
||||
default "ezr32wg" if CPU_FAM_EZR32WG
|
||||
|
||||
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
@ -1,4 +1,5 @@
|
||||
CPU_CORE = cortex-m4f
|
||||
CPU_FAM = ezr32wg
|
||||
|
||||
FEATURES_PROVIDED += cortexm_mpu
|
||||
FEATURES_PROVIDED += periph_cpuid
|
||||
|
@ -37,6 +37,7 @@ BOARD_WHITELIST += arduino-duemilanove \
|
||||
sltb001a \
|
||||
slwstk6000b-slwrb4150a \
|
||||
slwstk6000b-slwrb4162a \
|
||||
slwstk6220a \
|
||||
stk3600 \
|
||||
stk3700 \
|
||||
telosb \
|
||||
|
Loading…
Reference in New Issue
Block a user