From 9308a6f526044bbce7f02a7101226f6fa920faeb Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 6 Dec 2023 10:04:46 +0100 Subject: [PATCH] boards/esp32-mh-et-live-minikit,esp32-ttgo-t-beam: 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 CP2104 USB2UART bridge. But depending on the boards attached, it might be good enough to reliably tell it apart from other boards. --- boards/esp32-mh-et-live-minikit/Makefile.include | 4 ++++ boards/esp32-ttgo-t-beam/Makefile.include | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/boards/esp32-mh-et-live-minikit/Makefile.include b/boards/esp32-mh-et-live-minikit/Makefile.include index 30a3389a47..b1f1a76ce2 100644 --- a/boards/esp32-mh-et-live-minikit/Makefile.include +++ b/boards/esp32-mh-et-live-minikit/Makefile.include @@ -1 +1,5 @@ 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 'cp210x' --vendor 'Silicon Labs' --model 'CP2104 USB to UART Bridge Controller' diff --git a/boards/esp32-ttgo-t-beam/Makefile.include b/boards/esp32-ttgo-t-beam/Makefile.include index 1c6db773f3..e3e3e449ac 100644 --- a/boards/esp32-ttgo-t-beam/Makefile.include +++ b/boards/esp32-ttgo-t-beam/Makefile.include @@ -1,3 +1,7 @@ PSEUDOMODULES += esp32_ttgo_t_beam_v1_0 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 'cp210x' --vendor 'Silicon Labs' --model 'CP2104 USB to UART Bridge Controller'