Add serial console targets
This commit is contained in:
parent
96146f3a23
commit
7b3c13f03b
1 changed files with 10 additions and 0 deletions
10
Makefile
10
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue