Add support for picocom as a monitor
This commit is contained in:
parent
9629867ced
commit
92f82e3329
1 changed files with 9 additions and 7 deletions
16
Arduino.mk
16
Arduino.mk
|
@ -1488,14 +1488,16 @@ show_boards:
|
|||
@$(CAT) $(BOARDS_TXT) | grep -E '^[a-zA-Z0-9_]+.name' | sort -uf | sed 's/.name=/:/' | column -s: -t
|
||||
|
||||
monitor:
|
||||
ifneq ($(MONITOR_CMD), 'putty')
|
||||
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
|
||||
ifeq ($(MONITOR_CMD), 'putty')
|
||||
ifneq ($(strip $(MONITOR_PARMS)),)
|
||||
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARMS) $(call get_monitor_port)
|
||||
else
|
||||
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
|
||||
endif
|
||||
else ifeq ($(MONITOR_CMD), picocom)
|
||||
$(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port)
|
||||
else
|
||||
ifneq ($(strip $(MONITOR_PARMS)),)
|
||||
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARMS) $(call get_monitor_port)
|
||||
else
|
||||
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
|
||||
endif
|
||||
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
|
||||
endif
|
||||
|
||||
disasm: $(OBJDIR)/$(TARGET).lss
|
||||
|
|
Loading…
Reference in a new issue