2021-02-18 08:09:27 -05:00
|
|
|
menu "Hardware Settings"
|
2022-05-10 00:27:36 -04:00
|
|
|
orsource "./port/$IDF_TARGET/Kconfig.spiram"
|
|
|
|
|
2021-02-18 08:09:27 -05:00
|
|
|
menu "MAC Config"
|
|
|
|
config ESP_MAC_ADDR_UNIVERSE_WIFI_STA
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ESP_MAC_ADDR_UNIVERSE_WIFI_AP
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ESP_MAC_ADDR_UNIVERSE_BT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ESP_MAC_ADDR_UNIVERSE_ETH
|
|
|
|
bool
|
2021-03-17 08:42:10 -04:00
|
|
|
|
|
|
|
# Insert chip-specific MAC config
|
2022-05-05 23:31:24 -04:00
|
|
|
rsource "./port/$IDF_TARGET/Kconfig.mac"
|
2021-02-18 08:09:27 -05:00
|
|
|
endmenu
|
2021-03-10 08:55:49 -05:00
|
|
|
|
|
|
|
menu "Sleep Config"
|
|
|
|
# This is here since this option affect behavior of esp_light_sleep_start
|
|
|
|
# regardless of power management configuration.
|
|
|
|
config ESP_SLEEP_POWER_DOWN_FLASH
|
|
|
|
bool "Power down flash in light sleep when there is no SPIRAM"
|
|
|
|
depends on !SPIRAM
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If enabled, chip will try to power down flash as part of esp_light_sleep_start(), which costs
|
|
|
|
more time when chip wakes up. Can only be enabled if there is no SPIRAM configured.
|
|
|
|
This option will in fact consider VDD_SDIO auto power value (ESP_PD_OPTION_AUTO) as OFF. Also, it is
|
|
|
|
possible to force a power domain to stay ON during light sleep by using esp_sleep_pd_config()
|
|
|
|
function.
|
2021-07-16 05:44:03 -04:00
|
|
|
|
|
|
|
config ESP_SLEEP_RTC_BUS_ISO_WORKAROUND
|
|
|
|
bool
|
|
|
|
default y if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
2021-07-02 22:57:49 -04:00
|
|
|
|
2021-10-10 23:33:36 -04:00
|
|
|
config ESP_SLEEP_GPIO_RESET_WORKAROUND
|
|
|
|
bool "light sleep GPIO reset workaround"
|
2022-03-02 02:49:31 -05:00
|
|
|
default y if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
2021-10-10 23:33:36 -04:00
|
|
|
select PM_SLP_DISABLE_GPIO if FREERTOS_USE_TICKLESS_IDLE
|
|
|
|
help
|
2022-03-02 02:49:31 -05:00
|
|
|
esp32c2, esp32c3 and esp32s3 will reset at wake-up if GPIO is received a small electrostatic
|
2021-10-10 23:33:36 -04:00
|
|
|
pulse during light sleep, with specific condition
|
|
|
|
|
|
|
|
- GPIO needs to be configured as input-mode only
|
|
|
|
- The pin receives a small electrostatic pulse, and reset occurs when the pulse
|
|
|
|
voltage is higher than 6 V
|
|
|
|
|
|
|
|
For GPIO set to input mode only, it is not a good practice to leave it open/floating,
|
|
|
|
The hardware design needs to controlled it with determined supply or ground voltage
|
|
|
|
is necessary.
|
|
|
|
|
|
|
|
This option provides a software workaround for this issue. Configure to isolate all
|
|
|
|
GPIO pins in sleep state.
|
|
|
|
|
2021-07-02 22:57:49 -04:00
|
|
|
config ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND
|
|
|
|
bool "PSRAM leakage current workaround in light sleep"
|
|
|
|
depends on SPIRAM
|
|
|
|
help
|
|
|
|
When the CS pin of SPIRAM is not pulled up, the sleep current will
|
|
|
|
increase during light sleep. If the CS pin of SPIRAM has an external
|
|
|
|
pull-up, you do not need to select this option, otherwise, you
|
|
|
|
should enable this option.
|
2021-09-03 02:30:55 -04:00
|
|
|
|
|
|
|
config ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND
|
|
|
|
bool "Flash leakage current workaround in light sleep"
|
|
|
|
help
|
|
|
|
When the CS pin of Flash is not pulled up, the sleep current will
|
|
|
|
increase during light sleep. If the CS pin of Flash has an external
|
|
|
|
pull-up, you do not need to select this option, otherwise, you
|
|
|
|
should enable this option.
|
2022-05-10 00:27:36 -04:00
|
|
|
|
|
|
|
config ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY
|
|
|
|
int "Extra delay in deep sleep wake stub (in us)"
|
|
|
|
depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
|
|
|
|
default 2000
|
|
|
|
range 0 5000
|
|
|
|
help
|
|
|
|
When the chip exits deep sleep, the CPU and the flash chip are powered on
|
|
|
|
at the same time. CPU will run deep sleep stub first, and then
|
|
|
|
proceed to load code from flash. Some flash chips need sufficient
|
|
|
|
time to pass between power on and first read operation. By default,
|
|
|
|
without any extra delay, this time is approximately 900us, although
|
|
|
|
some flash chip types need more than that.
|
|
|
|
|
|
|
|
By default extra delay is set to 2000us. When optimizing startup time
|
|
|
|
for applications which require it, this value may be reduced.
|
|
|
|
|
|
|
|
If you are seeing "flash read err, 1000" message printed to the
|
|
|
|
console after deep sleep reset, try increasing this value.
|
|
|
|
|
2021-03-10 08:55:49 -05:00
|
|
|
endmenu
|
2021-11-23 00:07:43 -05:00
|
|
|
|
|
|
|
menu "RTC Clock Config"
|
2022-03-02 02:49:31 -05:00
|
|
|
orsource "./port/$IDF_TARGET/Kconfig.rtc"
|
|
|
|
|
2021-11-23 00:07:43 -05:00
|
|
|
config RTC_CLOCK_BBPLL_POWER_ON_WITH_USB
|
2022-05-05 23:31:24 -04:00
|
|
|
# This is used for configure the RTC clock.
|
2021-11-23 00:07:43 -05:00
|
|
|
bool "Keep BBPLL clock always work"
|
|
|
|
depends on ESP_CONSOLE_USB_SERIAL_JTAG || ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
When the chip goes sleep or software reset, the clock source would change to XTAL
|
|
|
|
and switch off the BBPLL clock for saving power. However, this might make the
|
|
|
|
USB_SERIAL_JTAG down which depends on BBPLL as its unique clock source.
|
|
|
|
Therefore, this is used for keeping bbpll clock always on when USB_SERIAL_JTAG PORT is using.
|
|
|
|
If you want to use USB_SERIAL_JTAG under sw_reset case or sleep-wakeup case, you shoule select
|
|
|
|
this option. But be aware that this might increase the power consumption.
|
|
|
|
endmenu
|
2022-03-24 09:33:36 -04:00
|
|
|
|
|
|
|
menu "Peripheral Control"
|
|
|
|
config PERIPH_CTRL_FUNC_IN_IRAM
|
|
|
|
bool "Place peripheral control functions into IRAM"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Place peripheral control functions (e.g. periph_module_reset) into IRAM,
|
|
|
|
so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
|
|
|
|
endmenu
|
2022-03-02 02:49:31 -05:00
|
|
|
|
|
|
|
# Insert chip-specific HW config
|
|
|
|
orsource "./port/$IDF_TARGET/Kconfig.hw_support"
|
|
|
|
|
2021-02-18 08:09:27 -05:00
|
|
|
endmenu
|