From 8d63b63e7ad63f61263d8f1186db8cf2fe4324c2 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 3 Jun 2022 19:19:26 +0200 Subject: [PATCH] boards/common/nucleo: provide TTY_BOARD_FILTER --- boards/common/nucleo/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/common/nucleo/Makefile.include b/boards/common/nucleo/Makefile.include index 24c6fc7910..a5da8b7d53 100644 --- a/boards/common/nucleo/Makefile.include +++ b/boards/common/nucleo/Makefile.include @@ -7,6 +7,10 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include # Setup of programmer and serial is shared between STM32 based boards include $(RIOTMAKE)/boards/stm32.inc.mk +# If port selection via ttys.py is enabled by `MOST_RECENT_PORT=1`, filter +# USB serials to only select the UART bridge of embedded STLink debuggers. +TTY_BOARD_FILTER := --model 'STM32 STLink' + # variable needed by cpy2remed PROGRAMMER # it contains name of ST-Link removable media