2020-06-03 22:13:13 +02:00
|
|
|
# Include all definitions for flashing with bossa other USB
|
2021-02-09 19:44:03 +01:00
|
|
|
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
|
2020-06-03 22:13:13 +02:00
|
|
|
include $(RIOTBOARD)/common/arduino-zero/Makefile.include
|
2023-12-13 15:38:10 +01:00
|
|
|
|
|
|
|
# Depending on whether the board is running RIOT or the bootloader, it has
|
|
|
|
# registers using a different vendor and model. We try to detect either.
|
|
|
|
TTY_BOARD_FILTER := --model $(BOARD) --vendor 'RIOT-os\.org'
|
|
|
|
PROG_TTY_BOARD_FILTER := --vendor 'Arduino LLC' --model 'Arduino Zero'
|
|
|
|
TTY_SELECT_CMD := $(RIOTTOOLS)/usb-serial/ttys.py \
|
|
|
|
--most-recent \
|
|
|
|
--format path serial \
|
|
|
|
$(TTY_BOARD_FILTER) || \
|
|
|
|
$(RIOTTOOLS)/usb-serial/ttys.py \
|
|
|
|
--most-recent \
|
|
|
|
--format path serial \
|
|
|
|
$(PROG_TTY_BOARD_FILTER_CLONE)
|