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:
commit
669043c435
@ -17,6 +17,7 @@ include $(RIOTBOARD)/Makefile.include.serial
|
|||||||
# Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash
|
# Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash
|
||||||
ifneq (,$(SERIAL))
|
ifneq (,$(SERIAL))
|
||||||
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
|
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
|
||||||
|
PORT_LINUX := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# this board uses openocd
|
# this board uses openocd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user