Skip to content

Commit

Permalink
boards/esp32s*-devkit: add TTY board filter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maribu committed Dec 6, 2023
1 parent 0177fea commit 0809bda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/esp32s2-devkit/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 4 additions & 0 deletions boards/esp32s3-devkit/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 0809bda

Please sign in to comment.