-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20179 from maribu/boards/wemos-zero
boards/wemos-zero: fix flashing and doc
- Loading branch information
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
CFLAGS += -DBOOTLOADER_UF2 | ||
|
||
# Include all definitions for flashing with bossa other USB | ||
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include | ||
include $(RIOTBOARD)/common/arduino-zero/Makefile.include | ||
|
||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters