Syntax fix and documentation of MONITOR_PARAMS

This commit is contained in:
Taylor Zowtuk 2019-07-19 11:00:25 -06:00
parent 0e462fcff1
commit 54c941fa88
3 changed files with 23 additions and 5 deletions

View file

@ -1792,11 +1792,11 @@ show_submenu:
monitor:
ifeq ($(notdir $(MONITOR_CMD)), putty)
ifneq ($(strip $(MONITOR_PARAMS)),)
ifneq ($(strip $(MONITOR_PARAMS)),)
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARAMS) $(call get_monitor_port)
else
else
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
endif
endif
else ifeq ($(notdir $(MONITOR_CMD)), picocom)
$(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port)
else ifeq ($(notdir $(MONITOR_CMD)), cu)

View file

@ -131,7 +131,7 @@ sudo port install py27-serial
On Windows:
You need to install Cygwin and its packages for Make, Perl and the following Serial library.
You need to install Cygwin and its packages for Make, Perl, Python2 and the following Serial library.
Assuming you included Python in your Cygwin installation:
@ -226,7 +226,7 @@ On Windows (using MSYS and PuTTY), you might want to set the following extra par
```make
MONITOR_CMD = putty
MONITOR_PARMS = 8,1,n,N
MONITOR_PARAMS = 8,1,n,N
```
On Arduino 1.5+ installs, you should set the architecture to either `avr` or `sam` and if using a submenu CPU type, then also set that:

View file

@ -1249,6 +1249,24 @@ MONITOR_CMD = minicom
----
### MONITOR_PARAMS
**Description:**
Additional parameters for the putty -sercfg command line argument.
Interpreted as a comma-separated list of configuration options.
**Example:**
```Makefile
MONITOR_PARAMS = 8,1,n,N
```
**Requirement:** *Optional*
----
### PRE_BUILD_HOOK
**Description:**