File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -1687,6 +1687,28 @@ reset_stty:
1687
1687
(sleep 0.1 2> /dev/null || sleep 1) ; \
1688
1688
$$ STTYF $(call get_monitor_port) -hupcl
1689
1689
1690
+ stty_params :
1691
+ stty -F $(call get_monitor_port) \
1692
+ cs8 \
1693
+ $(MONITOR_BAUDRATE ) \
1694
+ ignbrk \
1695
+ -brkint \
1696
+ -icrnl \
1697
+ -imaxbel \
1698
+ -opost \
1699
+ -onlcr \
1700
+ -isig \
1701
+ -icanon \
1702
+ -iexten \
1703
+ -echo \
1704
+ -echoe \
1705
+ -echok \
1706
+ -echoctl \
1707
+ -echoke \
1708
+ noflsh \
1709
+ -ixon \
1710
+ -crtscts
1711
+
1690
1712
ispload : $(TARGET_EEP ) $(TARGET_HEX ) verify_size
1691
1713
$(AVRDUDE ) $(AVRDUDE_COM_OPTS ) $(AVRDUDE_ISP_OPTS ) -e \
1692
1714
$(AVRDUDE_ISPLOAD_OPTS )
@@ -1730,8 +1752,8 @@ show_boards:
1730
1752
show_submenu :
1731
1753
@$(CAT ) $(BOARDS_TXT ) | grep -E ' [a-zA-Z0-9_\-]+.menu.(cpu|chip).[a-zA-Z0-9_\-]+=' | sort -uf | sed ' s/.menu.\(cpu\|chip\)./:/' | sed ' s/=/:/' | column -s: -t
1732
1754
1733
- monitor :
1734
- ifeq ($(notdir $( MONITOR_CMD )) , putty)
1755
+ monitor : stty_params
1756
+ ifeq ($(MONITOR_CMD ) , ' putty' )
1735
1757
ifneq ($(strip $(MONITOR_PARAMS)),)
1736
1758
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARAMS) $(call get_monitor_port)
1737
1759
else
You can’t perform that action at this time.
0 commit comments