From 9dcbab218a244b6fe84866e11d1b41473280e59c Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 6 Dec 2023 10:08:46 +0100 Subject: [PATCH] boards/esp32-olimex-evb,esp32-wemos-lolin-d32-pro: 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 USB 2.0 UART2USB bridge. But depending on the boards attached, it might be good enough to reliably tell it apart from other boards. --- boards/esp32-olimex-evb/Makefile.include | 4 ++++ boards/esp32-wemos-lolin-d32-pro/Makefile.include | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/boards/esp32-olimex-evb/Makefile.include b/boards/esp32-olimex-evb/Makefile.include index 6d21df9fa5..331cf84c6e 100644 --- a/boards/esp32-olimex-evb/Makefile.include +++ b/boards/esp32-olimex-evb/Makefile.include @@ -1,3 +1,7 @@ PSEUDOMODULES += olimex_esp32_gateway include $(RIOTBOARD)/common/esp32/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 'USB2.0-Serial' diff --git a/boards/esp32-wemos-lolin-d32-pro/Makefile.include b/boards/esp32-wemos-lolin-d32-pro/Makefile.include index 782a1579a8..826398d8eb 100644 --- a/boards/esp32-wemos-lolin-d32-pro/Makefile.include +++ b/boards/esp32-wemos-lolin-d32-pro/Makefile.include @@ -1,3 +1,7 @@ PSEUDOMODULES += esp_lolin_tft include $(RIOTBOARD)/common/esp32/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 'USB2.0-Serial'