change(esp_hw_support): move ESP_SLEEP_POWER_DOWN_CPU to Kconfig

This commit is contained in:
wuzhenghui
2025-10-14 11:03:42 +08:00
parent 69553da81a
commit 065dd70056
36 changed files with 100 additions and 101 deletions
@@ -176,12 +176,12 @@ static void test_temperature_sensor_sleep_retention(bool allow_pd)
esp_sleep_context_t sleep_ctx;
esp_sleep_set_sleep_context(&sleep_ctx);
#if ESP_SLEEP_POWER_DOWN_CPU
#if CONFIG_PM_ESP_SLEEP_POWER_DOWN_CPU
TEST_ESP_OK(sleep_cpu_configure(true));
#endif
TEST_ESP_OK(esp_sleep_enable_timer_wakeup(2 * 1000 * 1000));
TEST_ESP_OK(esp_light_sleep_start());
#if ESP_SLEEP_POWER_DOWN_CPU
#if CONFIG_PM_ESP_SLEEP_POWER_DOWN_CPU
TEST_ESP_OK(sleep_cpu_configure(false));
#endif
printf("check if the sleep happened as expected\r\n");