From 7b3c13f03bf52ac7a2ea2c2b279cf8ded9c41a08 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sat, 6 Oct 2018 14:34:26 +0000 Subject: [PATCH] Add serial console targets --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 5f543d6..1c6801a 100644 --- a/Makefile +++ b/Makefile @@ -68,3 +68,13 @@ reset: flash: $(PROG).hex $(AVRDUDE) $(AVRDUDE_ARGS) -U flash:w:$(PROG).hex endif + +# serial console +ifeq ($(COM),picocom) +serial: + $(COM) -b $(BAUDRATE) $(AVRDUDE_TTY) +endif +ifeq ($(COM),screen) +serial: + $(COM) $(AVRDUDE_TTY) $(BAUDRATE) +endif