Merge pull request #3973 from daniel-k/pr/samr21-xpro_tty

samr21-xpro: connect to correct tty when given SERIAL with make term
This commit is contained in:
Kaspar Schleiser 2015-09-29 12:44:34 +02:00
commit 669043c435

View File

@ -17,6 +17,7 @@ include $(RIOTBOARD)/Makefile.include.serial
# Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash
ifneq (,$(SERIAL))
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
PORT_LINUX := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))
endif
# this board uses openocd