change(esp_hw_support): deprecate esp_deep_sleep_enable_gpio_wakeup API

rename esp_deep_sleep_enable_gpio_wakeup to esp_sleep_enable_gpio_wakeup_on_hp_periph_powerdown
rename esp_deepsleep_gpio_wake_up_mode_t to esp_sleep_gpio_wake_up_mode_t
This commit is contained in:
wuzhenghui
2026-02-01 12:16:24 +08:00
committed by Jack
parent fc7cf9967a
commit 3c44b8fb85
8 changed files with 161 additions and 25 deletions
@@ -25,7 +25,7 @@ void example_deep_sleep_register_gpio_wakeup(void)
};
ESP_ERROR_CHECK(gpio_config(&config));
ESP_ERROR_CHECK(esp_deep_sleep_enable_gpio_wakeup(BIT(DEFAULT_WAKEUP_PIN), DEFAULT_WAKEUP_LEVEL));
ESP_ERROR_CHECK(esp_sleep_enable_gpio_wakeup_on_hp_periph_powerdown(BIT(DEFAULT_WAKEUP_PIN), DEFAULT_WAKEUP_LEVEL));
printf("Enabling GPIO wakeup on pins GPIO%d\n", DEFAULT_WAKEUP_PIN);
}