1menu "Example Configuration" 2 3 config EXAMPLE_WIFI_SSID 4 string "WiFi SSID" 5 default "myssid" 6 help 7 SSID (network name) for the example to connect to. 8 9 config EXAMPLE_WIFI_PASSWORD 10 string "WiFi Password" 11 default "mypassword" 12 help 13 WiFi password (WPA or WPA2) for the example to use. 14 15 config EXAMPLE_WIFI_LISTEN_INTERVAL 16 int "WiFi listen interval" 17 default 3 18 help 19 Interval for station to listen to beacon from AP. The unit of listen interval is one beacon interval. 20 For example, if beacon interval is 100 ms and listen interval is 3, the interval for station to listen 21 to beacon is 300 ms. 22 23 choice EXAMPLE_POWER_SAVE_MODE 24 prompt "power save mode" 25 default EXAMPLE_POWER_SAVE_MIN_MODEM 26 help 27 Power save mode for the esp32 to use. Modem sleep mode includes minimum and maximum power save modes. 28 In minimum power save mode, station wakes up every DTIM to receive beacon. Broadcast data will not be 29 lost because it is transmitted after DTIM. However, it can not save much more power if DTIM is short 30 for DTIM is determined by AP. 31 In maximum power save mode, station wakes up every listen interval to receive beacon. Broadcast data 32 may be lost because station may be in sleep state at DTIM time. If listen interval is longer, more power 33 is saved but broadcast data is more easy to lose. 34 35 config EXAMPLE_POWER_SAVE_NONE 36 bool "none" 37 config EXAMPLE_POWER_SAVE_MIN_MODEM 38 bool "minimum modem" 39 config EXAMPLE_POWER_SAVE_MAX_MODEM 40 bool "maximum modem" 41 endchoice 42 43 choice EXAMPLE_MAX_CPU_FREQ 44 prompt "Maximum CPU frequency" 45 default EXAMPLE_MAX_CPU_FREQ_80 46 depends on PM_ENABLE 47 help 48 Maximum CPU frequency to use for dynamic frequency scaling. 49 50 config EXAMPLE_MAX_CPU_FREQ_80 51 bool "80 MHz" 52 config EXAMPLE_MAX_CPU_FREQ_160 53 bool "160 MHz" 54 config EXAMPLE_MAX_CPU_FREQ_240 55 bool "240 MHz" 56 depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 57 endchoice 58 59 config EXAMPLE_MAX_CPU_FREQ_MHZ 60 int 61 default 80 if EXAMPLE_MAX_CPU_FREQ_80 62 default 160 if EXAMPLE_MAX_CPU_FREQ_160 63 default 240 if EXAMPLE_MAX_CPU_FREQ_240 64 65 66 choice EXAMPLE_MIN_CPU_FREQ 67 prompt "Minimum CPU frequency" 68 default EXAMPLE_MIN_CPU_FREQ_10M 69 depends on PM_ENABLE 70 help 71 Minimum CPU frequency to use for dynamic frequency scaling. 72 Should be set to XTAL frequency or XTAL frequency divided by integer. 73 74 config EXAMPLE_MIN_CPU_FREQ_40M 75 bool "40 MHz (use with 40MHz XTAL)" 76 depends on !IDF_TARGET_ESP32 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO 77 config EXAMPLE_MIN_CPU_FREQ_20M 78 bool "20 MHz (use with 40MHz XTAL)" 79 depends on !IDF_TARGET_ESP32 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO 80 config EXAMPLE_MIN_CPU_FREQ_10M 81 bool "10 MHz (use with 40MHz XTAL)" 82 depends on !IDF_TARGET_ESP32 || ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO 83 config EXAMPLE_MIN_CPU_FREQ_26M 84 bool "26 MHz (use with 26MHz XTAL)" 85 depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO 86 config EXAMPLE_MIN_CPU_FREQ_13M 87 bool "13 MHz (use with 26MHz XTAL)" 88 depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO 89 endchoice 90 91 config EXAMPLE_MIN_CPU_FREQ_MHZ 92 int 93 default 40 if EXAMPLE_MIN_CPU_FREQ_40M 94 default 20 if EXAMPLE_MIN_CPU_FREQ_20M 95 default 10 if EXAMPLE_MIN_CPU_FREQ_10M 96 default 26 if EXAMPLE_MIN_CPU_FREQ_26M 97 default 13 if EXAMPLE_MIN_CPU_FREQ_13M 98 99endmenu 100