diff --git a/boards/esp32-ethernet-kit-v1_0/Makefile.include b/boards/esp32-ethernet-kit-v1_0/Makefile.include index 1e3b2497a0..0106995d08 100644 --- a/boards/esp32-ethernet-kit-v1_0/Makefile.include +++ b/boards/esp32-ethernet-kit-v1_0/Makefile.include @@ -6,4 +6,8 @@ ifneq (,$(filter esp_jtag,$(USEMODULE))) OPENOCD_CONFIG ?= board/esp32-ethernet-kit-3.3v.cfg endif +# Only consider TTYs matching the following filter when auto-selecting the TTY +# with `MOST_RECENT_PORT=1`. +TTY_BOARD_FILTER := --driver 'ftdi_sio' --vendor FTDI --model 'Dual RS232-HS' --iface-num 1 + include $(RIOTBOARD)/common/esp32/Makefile.include 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-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-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' 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' diff --git a/boards/esp32-wroom-32/Makefile.include b/boards/esp32-wroom-32/Makefile.include index 30a3389a47..2887a14b1b 100644 --- a/boards/esp32-wroom-32/Makefile.include +++ b/boards/esp32-wroom-32/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 'CP2102 USB to UART Bridge Controller' diff --git a/boards/esp32-wrover-kit/Makefile.include b/boards/esp32-wrover-kit/Makefile.include index 4a4f25c479..5fe61f1358 100644 --- a/boards/esp32-wrover-kit/Makefile.include +++ b/boards/esp32-wrover-kit/Makefile.include @@ -3,6 +3,10 @@ PSEUDOMODULES += esp32_wrover_kit_camera # configure the serial interface PORT_LINUX ?= /dev/ttyUSB1 +# Only consider TTYs matching the following filter when auto-selecting the TTY +# with `MOST_RECENT_PORT=1`. +TTY_BOARD_FILTER := --driver 'ftdi_sio' --vendor FTDI --model 'Dual RS232-HS' --iface-num 1 + ifneq (,$(filter esp_jtag,$(USEMODULE))) OPENOCD_CONFIG ?= board/esp32-wrover-kit-3.3v.cfg endif diff --git a/boards/esp32c3-devkit/Makefile.include b/boards/esp32c3-devkit/Makefile.include index 5bd8fde8dd..728ae3c44d 100644 --- a/boards/esp32c3-devkit/Makefile.include +++ b/boards/esp32c3-devkit/Makefile.include @@ -1 +1,5 @@ include $(RIOTBOARD)/common/esp32c3/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 'CP2102N USB to UART Bridge Controller' diff --git a/boards/esp32s2-devkit/Makefile.include b/boards/esp32s2-devkit/Makefile.include index 43032c89f2..12997eb0f6 100644 --- a/boards/esp32s2-devkit/Makefile.include +++ b/boards/esp32s2-devkit/Makefile.include @@ -6,3 +6,7 @@ PSEUDOMODULES += esp32s2_saola_1 PSEUDOMODULES += esp32s2_saola_1r 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 'cp210x' --vendor 'Silicon Labs' --model 'CP2102N USB to UART Bridge Controller' 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' diff --git a/boards/esp32s3-devkit/Makefile.include b/boards/esp32s3-devkit/Makefile.include index c1027951e0..403fb40c37 100644 --- a/boards/esp32s3-devkit/Makefile.include +++ b/boards/esp32s3-devkit/Makefile.include @@ -10,3 +10,7 @@ PSEUDOMODULES += esp32s3_devkitm_1_n8r8 PSEUDOMODULES += esp32s3_devkitm_1u_n8r8 include $(RIOTBOARD)/common/esp32s3/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 'CP2102N USB to UART Bridge Controller'