1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

boards/esp32*-devkit: 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 CP2102N USB2UART bridge. But depending on the boards
attached, it might be good enough to reliably tell it apart from other
boards.
This commit is contained in:
Marian Buschsieweke 2023-12-06 09:25:15 +01:00
parent 03a1a02ec2
commit 7228cf1108
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6
3 changed files with 12 additions and 0 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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'