Skip to content

Commit 1252f7f

Browse files
committed
add "monitor" build target for idf
1 parent 5703b76 commit 1252f7f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Diff for: Kconfig

+37
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
menu "Arduino Configuration"
22

3+
choice MONITOR_BAUD
4+
prompt "Monitor baud rate"
5+
default MONITOR_BAUD_115200B
6+
help
7+
Baud rate to use while monitoring the ESP chip.
8+
9+
config MONITOR_BAUD_9600B
10+
bool "9600 bps"
11+
config MONITOR_BAUD_57600B
12+
bool "57600 bps"
13+
config MONITOR_BAUD_115200B
14+
bool "115200 bps"
15+
config MONITOR_BAUD_230400B
16+
bool "230400 bps"
17+
config MONITOR_BAUD_921600B
18+
bool "921600 bps"
19+
config MONITOR_BAUD_2MB
20+
bool "2 Mbps"
21+
config MONITOR_BAUD_OTHER
22+
bool "Custom baud rate"
23+
24+
endchoice
25+
26+
config MONITOR_BAUD_OTHER_VAL
27+
int "Custom baud rate value" if MONITOR_BAUD_OTHER
28+
default 115200
29+
30+
config MONITOR_BAUD
31+
int
32+
default 9600 if MONITOR_BAUD_9600B
33+
default 57600 if MONITOR_BAUD_57600B
34+
default 115200 if MONITOR_BAUD_115200B
35+
default 230400 if MONITOR_BAUD_230400B
36+
default 921600 if MONITOR_BAUD_921600B
37+
default 2000000 if MONITOR_BAUD_2MB
38+
default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER
39+
340
config AUTOSTART_ARDUINO
441
bool "Autostart Arduino setup and loop on boot"
542
default "n"

Diff for: Makefile.projbuild

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#build with "make flash monitor" to upload and open serial monitor
2+
monitor:
3+
$(Q) miniterm.py --rts 0 --dtr 0 --raw $(ESPPORT) $(CONFIG_MONITOR_BAUD)

0 commit comments

Comments
 (0)