Skip to content

Commit

Permalink
boards/slstk3701a: add Silabs EFM32 Giant Gecko GG11 Starter Kit
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Sep 15, 2023
1 parent 8c057c2 commit 80e99dc
Show file tree
Hide file tree
Showing 10 changed files with 854 additions and 0 deletions.
32 changes: 32 additions & 0 deletions boards/slstk3701a/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 "slstk3701a" if BOARD_SLSTK3701A

config BOARD_SLSTK3701A
bool
default y
select BOARD_COMMON_SILABS
select CPU_MODEL_EFM32GG11B820F2048GL192
select HAS_PERIPH_ADC
select HAS_PERIPH_DAC
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
select HAS_PERIPH_USBDEV

select HAVE_SAUL_GPIO
select HAVE_SI7021

select MODULE_SILABS_AEM if TEST_KCONFIG
select MODULE_SILABS_BC if TEST_KCONFIG

source "$(RIOTBOARD)/common/silabs/Kconfig"
5 changes: 5 additions & 0 deletions boards/slstk3701a/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MODULE = board

DIRS = $(RIOTBOARD)/common/silabs

include $(RIOTBASE)/Makefile.base
13 changes: 13 additions & 0 deletions boards/slstk3701a/Makefile.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

# add board common drivers
USEMODULE += boards_common_silabs
USEMODULE += silabs_aem
USEMODULE += silabs_bc

# include board common dependencies
include $(RIOTBOARD)/common/silabs/Makefile.dep
16 changes: 16 additions & 0 deletions boards/slstk3701a/Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CPU = efm32
CPU_FAM = efm32gg11b
CPU_MODEL = efm32gg11b820f2048gl192

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_dac
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart periph_uart_modecfg
FEATURES_PROVIDED += periph_usbdev

include $(RIOTBOARD)/common/silabs/Makefile.features
12 changes: 12 additions & 0 deletions boards/slstk3701a/Makefile.include
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))

# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk

# setup JLink for flashing
JLINK_PRE_FLASH = r

# include board common
include $(RIOTBOARD)/common/silabs/Makefile.include
31 changes: 31 additions & 0 deletions boards/slstk3701a/board.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (C) 2015-2020 Freie Universität Berlin
*
* 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.
*/

/**
* @ingroup boards_slstk3701a
* @{
*
* @file
* @brief Board specific implementations SLSTK3701A board
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Bas Stottelaar <basstottelaar@gmail.com>
*
* @}
*/

#include "board.h"
#include "board_common.h"

void board_init(void)
{
#ifndef RIOTBOOT
/* perform common board initialization */
board_common_init();
#endif
}
Loading

0 comments on commit 80e99dc

Please sign in to comment.