Skip to content

Commit

Permalink
Merge pull request #14310 from leandrolanzieri/pr/kconfig/efm32_board…
Browse files Browse the repository at this point in the history
…s_symbols

boards/efm32-based: Model features in Kconfig
  • Loading branch information
cgundogan authored Jun 19, 2020
2 parents 3a135c9 + a2e06df commit 209248f
Show file tree
Hide file tree
Showing 18 changed files with 1,167 additions and 1 deletion.
10 changes: 10 additions & 0 deletions boards/common/silabs/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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_COMMON_SILABS
bool
select HAS_ARDUINO
select HAS_RIOTBOOT
19 changes: 19 additions & 0 deletions boards/common/slwstk6000b/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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_COMMON_SLWSTK6000B
bool
select BOARD_COMMON_SILABS
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
20 changes: 20 additions & 0 deletions boards/ikea-tradfri/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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 "ikea-tradfri" if BOARD_IKEA_TRADFRI

config BOARD_IKEA_TRADFRI
bool
default y
select CPU_MODEL_EFR32MG1P132F256GM32
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG
select HAS_RIOTBOOT
24 changes: 24 additions & 0 deletions boards/slstk3401a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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 "slstk3401a" if BOARD_SLSTK3401A

config BOARD_SLSTK3401A
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFM32PG1B200F256GM48
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
24 changes: 24 additions & 0 deletions boards/slstk3402a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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 "slstk3402a" if BOARD_SLSTK3402A

config BOARD_SLSTK3402A
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFM32PG12B500F1024GL125
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
24 changes: 24 additions & 0 deletions boards/sltb001a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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 "sltb001a" if BOARD_SLTB001A

config BOARD_SLTB001A
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFR32MG1P132F256GM48
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
16 changes: 16 additions & 0 deletions boards/slwstk6000b-slwrb4150a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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 "slwstk6000b-slwrb4150a" if BOARD_SLWSTK6000B_SLWRB4150A

config BOARD_SLWSTK6000B_SLWRB4150A
bool
default y
select CPU_MODEL_EFR32MG1P233F256GM48
select BOARD_COMMON_SLWSTK6000B

source "$(RIOTBOARD)/common/slwstk6000b/Kconfig"
16 changes: 16 additions & 0 deletions boards/slwstk6000b-slwrb4162a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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 "slwstk6000b-slwrb4162a" if BOARD_SLWSTK6000B_SLWRB4162A

config BOARD_SLWSTK6000B_SLWRB4162A
bool
default y
select CPU_MODEL_EFR32MG12P332F1024GL125
select BOARD_COMMON_SLWSTK6000B

source "$(RIOTBOARD)/common/slwstk6000b/Kconfig"
26 changes: 26 additions & 0 deletions boards/stk3600/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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 "stk3600" if BOARD_STK3600

config BOARD_STK3600
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFM32LG990F256
select HAS_PERIPH_ADC
select HAS_PERIPH_DAC
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
26 changes: 26 additions & 0 deletions boards/stk3700/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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 "stk3700" if BOARD_STK3700

config BOARD_STK3700
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFM32GG990F1024
select HAS_PERIPH_ADC
select HAS_PERIPH_DAC
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_UART_MODECFG

source "$(RIOTBOARD)/common/silabs/Kconfig"
34 changes: 34 additions & 0 deletions cpu/efm32/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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_COMMON_EFM32
bool
select HAS_ARCH_EFM32
select HAS_CORTEXM_MPU
select HAS_CPU_EFM32
select HAS_PERIPH_CPUID
select HAS_PERIPH_FLASHPAGE
select HAS_PERIPH_FLASHPAGE_RAW
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ

## Definition of specific features
config HAS_ARCH_EFM32
bool
help
Indicates that the 'efm32' architecture is being used.

config HAS_CPU_EFM32
bool
help
Indicates that the CPU being used is an EFM32.

## Common CPU symbols
config CPU
default "efm32" if CPU_COMMON_EFM32

orsource "families/*/Kconfig"
source "$(RIOTCPU)/cortexm_common/Kconfig"
Loading

0 comments on commit 209248f

Please sign in to comment.