diff --git a/boards/arduino-zero/Makefile.include b/boards/arduino-zero/Makefile.include index d8a948a8074efaaaab3fe510b130428c3751a2d3..711af3ea92ff037aab740a47282e0eb1b35d216c 100644 --- a/boards/arduino-zero/Makefile.include +++ b/boards/arduino-zero/Makefile.include @@ -2,24 +2,4 @@ export CPU = samd21 export CPU_MODEL = samd21g18a -# set default port depending on operating system -export PORT_LINUX ?= /dev/ttyACM0 -export 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="<SERIAL>" BOARD="arduino-zero" make flash -ifneq (,$(SERIAL)) - export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)" - SERIAL_TTY = $(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