light sleep: add software workaround for esp32c3 gpio reset issue

This commit is contained in:
Li Shuai
2021-03-11 19:25:54 +08:00
parent aff0235e47
commit b3bc27972e
6 changed files with 44 additions and 18 deletions
+7 -8
View File
@@ -434,24 +434,23 @@ esp_deep_sleep_wake_stub_fn_t esp_get_deep_sleep_wake_stub(void);
void esp_default_wake_deep_sleep(void);
/**
* @brief Disable logging from the ROM code after deep sleep.
* @brief Disable logging from the ROM code after deep sleep.
*
* Using LSB of RTC_STORE4.
* Using LSB of RTC_STORE4.
*/
void esp_deep_sleep_disable_rom_logging(void);
#if SOC_GPIO_SUPPORT_SLP_SWITCH
/**
* @brief Disable all GPIO pins at slept status.
*
* @brief Configure to isolate all GPIO pins in sleep state
*/
void esp_sleep_gpio_status_init(void);
void esp_sleep_config_gpio_isolate(void);
/**
* @brief Configure GPIO pins status switching between slept status and waked status.
* @param enable decide whether to switch status or not
* @brief Enable or disable GPIO pins status switching between slept status and waked status.
* @param enable decide whether to switch status or not
*/
void esp_sleep_gpio_status_switch_configure(bool enable);
void esp_sleep_enable_gpio_switch(bool enable);
#endif
#if CONFIG_MAC_BB_PD