Add serial console targets

This commit is contained in:
Nero 2018-10-06 14:34:26 +00:00
parent 96146f3a23
commit 7b3c13f03b
1 changed files with 10 additions and 0 deletions

View File

@ -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