-
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/calliope-mini: factorize common code
- Loading branch information
Showing
3 changed files
with
11 additions
and
34 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 |
---|---|---|
@@ -1,14 +1,7 @@ | ||
# Put defined MCU peripherals here (in alphabetical order) | ||
FEATURES_PROVIDED += periph_gpio periph_gpio_irq | ||
FEATURES_PROVIDED += periph_i2c | ||
FEATURES_PROVIDED += periph_rtt | ||
FEATURES_PROVIDED += periph_timer | ||
FEATURES_PROVIDED += periph_uart | ||
FEATURES_PROVIDED += periph_pwm | ||
|
||
# Various other features (if any) | ||
|
||
# The board MPU family (used for grouping by the CI system) | ||
FEATURES_MCU_GROUP = cortex_m0_1 | ||
|
||
include $(RIOTCPU)/nrf51/Makefile.features | ||
# include common nrf51 based boards features | ||
include $(RIOTBOARD)/common/nrf51/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 |
---|---|---|
@@ -1,26 +1,24 @@ | ||
# define the used CPU | ||
export CPU = nrf51 | ||
export CPU_MODEL = nrf51x22xxab | ||
|
||
# define the default port depending on the host OS | ||
PORT_LINUX ?= /dev/ttyACM0 | ||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) | ||
|
||
# setup serial terminal | ||
include $(RIOTMAKE)/tools/serial.inc.mk | ||
|
||
# we support flashing through plain fscopy or using JLink | ||
# this board supports flashing through plain fscopy, using JLink or using | ||
# openocd | ||
PROGRAMMER ?= fscopy | ||
|
||
ifeq (fscopy,$(PROGRAMMER)) | ||
export FFLAGS = | ||
export DEBUGGER_FLAGS = | ||
|
||
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh | ||
export DEBUGGER = | ||
export DEBUGSERVER = | ||
else ifeq (jlink,$(PROGRAMMER)) | ||
export JLINK_DEVICE := nrf51822 | ||
include $(RIOTMAKE)/tools/jlink.inc.mk | ||
else | ||
$(info ERROR: invalid flash tool specified) | ||
else ifeq (openocd,$(PROGRAMMER)) | ||
DEBUG_ADAPTER = jlink | ||
endif | ||
|
||
# include nrf51 boards common configuration | ||
include $(RIOTBOARD)/common/nrf51/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