2017-03-27 09:52:46 +00:00
|
|
|
menu "Example Configuration"
|
2017-03-29 07:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_WIFI_SSID
|
2019-01-25 16:10:53 +00:00
|
|
|
string "WiFi SSID"
|
|
|
|
default "myssid"
|
|
|
|
help
|
|
|
|
SSID (network name) for the example to connect to.
|
2017-03-29 07:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_WIFI_PASSWORD
|
2019-01-25 16:10:53 +00:00
|
|
|
string "WiFi Password"
|
|
|
|
default "mypassword"
|
|
|
|
help
|
|
|
|
WiFi password (WPA or WPA2) for the example to use.
|
2017-03-27 09:52:46 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_WIFI_LISTEN_INTERVAL
|
2019-01-25 16:10:53 +00:00
|
|
|
int "WiFi listen interval"
|
|
|
|
default 3
|
|
|
|
help
|
|
|
|
Interval for station to listen to beacon from AP. The unit of listen interval is one beacon interval.
|
|
|
|
For example, if beacon interval is 100 ms and listen interval is 3, the interval for station to listen
|
|
|
|
to beacon is 300 ms.
|
2017-03-29 07:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
choice EXAMPLE_POWER_SAVE_MODE
|
2019-01-25 16:10:53 +00:00
|
|
|
prompt "power save mode"
|
2019-05-09 14:43:06 +00:00
|
|
|
default EXAMPLE_POWER_SAVE_MIN_MODEM
|
2019-01-25 16:10:53 +00:00
|
|
|
help
|
|
|
|
Power save mode for the esp32 to use. Modem sleep mode includes minimum and maximum power save modes.
|
|
|
|
In minimum power save mode, station wakes up every DTIM to receive beacon. Broadcast data will not be
|
|
|
|
lost because it is transmitted after DTIM. However, it can not save much more power if DTIM is short
|
|
|
|
for DTIM is determined by AP.
|
|
|
|
In maximum power save mode, station wakes up every listen interval to receive beacon. Broadcast data
|
|
|
|
may be lost because station may be in sleep state at DTIM time. If listen interval is longer, more power
|
|
|
|
is saved but broadcast data is more easy to lose.
|
2017-03-29 07:33:05 +00:00
|
|
|
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_POWER_SAVE_NONE
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "none"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_POWER_SAVE_MIN_MODEM
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "minimum modem"
|
2019-05-09 14:43:06 +00:00
|
|
|
config EXAMPLE_POWER_SAVE_MAX_MODEM
|
2019-01-25 16:10:53 +00:00
|
|
|
bool "maximum modem"
|
|
|
|
endchoice
|
2018-07-25 23:02:31 +00:00
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
choice EXAMPLE_MAX_CPU_FREQ
|
|
|
|
prompt "Maximum CPU frequency"
|
|
|
|
default EXAMPLE_MAX_CPU_FREQ_80
|
|
|
|
help
|
|
|
|
Maximum CPU frequency to use for dynamic frequency scaling.
|
2018-07-25 23:02:31 +00:00
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
config EXAMPLE_MAX_CPU_FREQ_80
|
|
|
|
bool "80 MHz"
|
|
|
|
config EXAMPLE_MAX_CPU_FREQ_160
|
|
|
|
bool "160 MHz"
|
|
|
|
config EXAMPLE_MAX_CPU_FREQ_240
|
|
|
|
bool "240 MHz"
|
|
|
|
endchoice
|
2018-07-25 23:02:31 +00:00
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
config EXAMPLE_MAX_CPU_FREQ_MHZ
|
|
|
|
int
|
|
|
|
default 80 if EXAMPLE_MAX_CPU_FREQ_80
|
|
|
|
default 160 if EXAMPLE_MAX_CPU_FREQ_160
|
|
|
|
default 240 if EXAMPLE_MAX_CPU_FREQ_240
|
2018-07-25 23:02:31 +00:00
|
|
|
|
|
|
|
|
2019-01-25 16:10:53 +00:00
|
|
|
choice EXAMPLE_MIN_CPU_FREQ
|
|
|
|
prompt "Minimum CPU frequency"
|
|
|
|
default EXAMPLE_MIN_CPU_FREQ_10M
|
|
|
|
help
|
|
|
|
Minimum CPU frequency to use for dynamic frequency scaling.
|
|
|
|
Should be set to XTAL frequency or XTAL frequency divided by integer.
|
|
|
|
|
|
|
|
config EXAMPLE_MIN_CPU_FREQ_40M
|
|
|
|
bool "40 MHz (use with 40MHz XTAL)"
|
2020-05-07 08:15:56 +00:00
|
|
|
depends on IDF_TARGET_ESP32S2 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
|
2019-01-25 16:10:53 +00:00
|
|
|
config EXAMPLE_MIN_CPU_FREQ_20M
|
|
|
|
bool "20 MHz (use with 40MHz XTAL)"
|
2020-05-07 08:15:56 +00:00
|
|
|
depends on IDF_TARGET_ESP32S2 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
|
2019-01-25 16:10:53 +00:00
|
|
|
config EXAMPLE_MIN_CPU_FREQ_10M
|
|
|
|
bool "10 MHz (use with 40MHz XTAL)"
|
2020-05-07 08:15:56 +00:00
|
|
|
depends on IDF_TARGET_ESP32S2 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
|
2019-01-25 16:10:53 +00:00
|
|
|
config EXAMPLE_MIN_CPU_FREQ_26M
|
|
|
|
bool "26 MHz (use with 26MHz XTAL)"
|
|
|
|
depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO
|
|
|
|
config EXAMPLE_MIN_CPU_FREQ_13M
|
|
|
|
bool "13 MHz (use with 26MHz XTAL)"
|
|
|
|
depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config EXAMPLE_MIN_CPU_FREQ_MHZ
|
|
|
|
int
|
|
|
|
default 40 if EXAMPLE_MIN_CPU_FREQ_40M
|
|
|
|
default 20 if EXAMPLE_MIN_CPU_FREQ_20M
|
|
|
|
default 10 if EXAMPLE_MIN_CPU_FREQ_10M
|
|
|
|
default 26 if EXAMPLE_MIN_CPU_FREQ_26M
|
|
|
|
default 13 if EXAMPLE_MIN_CPU_FREQ_13M
|
2018-07-25 23:02:31 +00:00
|
|
|
|
2017-03-27 09:52:46 +00:00
|
|
|
endmenu
|