-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/slstk3701a: add Silabs EFM32 Giant Gecko GG11 Starter Kit
- Loading branch information
Showing
10 changed files
with
854 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MODULE = board | ||
|
||
DIRS = $(RIOTBOARD)/common/silabs | ||
|
||
include $(RIOTBASE)/Makefile.base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.