board: sodaq-autonomo: make use of shared makefiles/boards/

This commit is contained in:
Kaspar Schleiser 2017-05-18 19:36:28 +02:00
parent d907789c57
commit 494064b4ba
1 changed files with 1 additions and 23 deletions

View File

@ -2,26 +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*)))
export OFLAGS = -O binary
# setup serial terminal
include $(RIOTMAKE)/tools/
# Add board selector (USB serial) to OpenOCD options if specified.
# Use /dist/tools/usb-serial/ to find out serial number.
# Usage: SERIAL="AAA..." BOARD="sodaq-autonomo" make flash
ifneq (,$(SERIAL))
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
SERIAL_TTY = $(shell $(RIOTBASE)/dist/tools/usb-serial/ $(SERIAL))
ifeq (,$(SERIAL_TTY))
$(error Did not find a device with serial $(SERIAL))
# this board uses openocd
include $(RIOTMAKE)/tools/
include $(RIOTMAKE)/boards/