From c1ac9dc7396e7ca51b995a6a06d43472f49fafb1 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Thu, 18 May 2017 19:36:28 +0200 Subject: [PATCH] board: samd21-xpro: make use of shared makefiles/boards/sam0.inc.mk --- boards/samd21-xpro/Makefile.include | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/boards/samd21-xpro/Makefile.include b/boards/samd21-xpro/Makefile.include index e8415c937e..06056fc464 100644 --- a/boards/samd21-xpro/Makefile.include +++ b/boards/samd21-xpro/Makefile.include @@ -2,24 +2,4 @@ export CPU = samd21 export CPU_MODEL = samd21j18a -# 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 - -# Add board selector (USB serial) to OpenOCD options if specified. -# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number. -# Usage: SERIAL="ATML..." BOARD="samd21-xpro" make flash -ifneq (,$(SERIAL)) - export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)" - SERIAL_TTY = $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))) - ifeq (,$(SERIAL_TTY)) - $(error Did not find a device with serial $(SERIAL)) - endif - PORT_LINUX := $(SERIAL_TTY) -endif - -# this board uses openocd -include $(RIOTMAKE)/tools/openocd.inc.mk +include $(RIOTMAKE)/boards/sam0.inc.mk -- GitLab