From a5785cdf9c613f1b7b6056410cbe61bb1ff7e071 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 19 Nov 2019 15:06:46 +0100 Subject: [PATCH] tools/serial.inc.mk: Support miniterm.py miniterm.py is a simple terminal program that is included with pyserial. This means that it is available wherever pyterm can work. It allows raw access, does line translation and passes through special characters. Co-authored-by: Juan Carrano --- makefiles/tools/serial.inc.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefiles/tools/serial.inc.mk b/makefiles/tools/serial.inc.mk index 8b303a240a..570fe1c2b5 100644 --- a/makefiles/tools/serial.inc.mk +++ b/makefiles/tools/serial.inc.mk @@ -21,4 +21,9 @@ else ifeq ($(RIOT_TERMINAL),socat) else ifeq ($(RIOT_TERMINAL),picocom) TERMPROG ?= picocom TERMFLAGS ?= --nolock --imap lfcrlf --baud "$(BAUD)" "$(PORT)" +else ifeq ($(RIOT_TERMINAL),miniterm) + TERMPROG ?= miniterm.py + # The RIOT shell will still transmit back a CRLF, but at least with --eol LF + # we avoid sending two lines on every "enter". + TERMFLAGS ?= --eol LF "$(PORT)" "$(BAUD)" endif