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