Add serial console targets
This commit is contained in:
parent
96146f3a23
commit
7b3c13f03b
10
Makefile
10
Makefile
@ -68,3 +68,13 @@ reset:
|
|||||||
flash: $(PROG).hex
|
flash: $(PROG).hex
|
||||||
$(AVRDUDE) $(AVRDUDE_ARGS) -U flash:w:$(PROG).hex
|
$(AVRDUDE) $(AVRDUDE_ARGS) -U flash:w:$(PROG).hex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# serial console
|
||||||
|
ifeq ($(COM),picocom)
|
||||||
|
serial:
|
||||||
|
$(COM) -b $(BAUDRATE) $(AVRDUDE_TTY)
|
||||||
|
endif
|
||||||
|
ifeq ($(COM),screen)
|
||||||
|
serial:
|
||||||
|
$(COM) $(AVRDUDE_TTY) $(BAUDRATE)
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user