Skip to content

Commit 4a8e0d8

Browse files
committed
Merge branch 'fix/gptimer_sleep_retention_case' into 'master'
test(gptimer): power domain is not power down on esp32c5 Closes IDFCI-2923 and IDFCI-2922 See merge request espressif/esp-idf!39591
2 parents 11ad7e0 + bf950e7 commit 4a8e0d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/esp_driver_gptimer/test_apps/gptimer/main/test_gptimer_sleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static void test_gptimer_sleep_retention(bool allow_pd)
8585

8686
printf("check if the sleep happened as expected\r\n");
8787
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
88-
#if SOC_RMT_SUPPORT_SLEEP_RETENTION
88+
#if SOC_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
8989
// check if the power domain also is powered down
9090
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
9191
#endif
@@ -202,7 +202,7 @@ static void test_gptimer_etm_sleep_retention(bool back_up_before_sleep)
202202

203203
printf("check if the sleep happened as expected\r\n");
204204
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
205-
#if SOC_RMT_SUPPORT_SLEEP_RETENTION
205+
#if SOC_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
206206
// check if the power domain also is powered down
207207
TEST_ASSERT_EQUAL(back_up_before_sleep ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
208208
#endif

0 commit comments

Comments
 (0)