mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b51ea4ca24
Move common configuration for MSP430 based boards to `boards/common/msp430` and make use of that.
19 lines
892 B
Makefile
19 lines
892 B
Makefile
# When freshly plugged in the Olimex MSP430-JTAG-Tiny debugger provides a
|
|
# ttyACM interface, which is only available until the first flashing. A
|
|
# `make term` or even a `make flash term` may pick the JTAG debugger instead
|
|
# of the correct USB TTL adapter when the JTAG programmer is plugged in after
|
|
# the TTL adapter and `MOST_RECENT_PORT=1` is used.
|
|
#
|
|
# To fix that, we filter first by the most common USB TTL adapter drivers and
|
|
# fall back to all TTY when no such TTL adapter is found.
|
|
TTY_BOARD_FILTER := --driver 'cp210x|ch341|ftdi_sio'
|
|
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
|
|
|
|
include $(RIOTBOARD)/common/msp430/Makefile.include
|