From f80f47ccf630a09e45556a5c4692b27acda8ac5d Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 6 Dec 2023 10:10:28 +0100 Subject: [PATCH] boards/esp32s2-lilygo-ttgo-t8: add TTY board filter When using `make flash` or `make term` with `MOST_RECENT_PORT=1`, RIOT should now only consider plausible TTYs and select the most recently connected one. The filter is a bit broad, though, and will match any board with a CH430 UART2USB bridge. But depending on the boards attached, it might be good enough to reliably tell it apart from other boards. --- boards/esp32s2-lilygo-ttgo-t8/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/esp32s2-lilygo-ttgo-t8/Makefile.include b/boards/esp32s2-lilygo-ttgo-t8/Makefile.include index 9d387f6803..65924a77f3 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/Makefile.include +++ b/boards/esp32s2-lilygo-ttgo-t8/Makefile.include @@ -5,3 +5,7 @@ ifneq (,$(filter esp32s2-lilygo-ttgo-t8-usb,$(USEMODULE))) endif include $(RIOTBOARD)/common/esp32s2/Makefile.include + +# Only consider TTYs matching the following filter when auto-selecting the TTY +# with `MOST_RECENT_PORT=1`. +TTY_BOARD_FILTER := --driver 'ch341' --vendor '1a86' --model 'USB Serial'