Skip to content

Commit ea4787e

Browse files
committed
Merge branch 'bugfix/idfci-2959' into 'master'
fix ci build doc field on power management and sleep rst text Closes IDFCI-2959 and IDFCI-2960 See merge request espressif/esp-idf!39643
2 parents dc814f2 + c6c2948 commit ea4787e

File tree

16 files changed

+28
-16
lines changed

16 files changed

+28
-16
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_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
88+
#if SOC_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
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_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
205+
#if SOC_TIMER_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
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

components/esp_driver_i2s/test_apps/i2s/main/test_i2s_sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void s_test_i2s_enter_light_sleep(int sec, bool allow_power_down)
4242
printf("Woke up from light sleep\n");
4343

4444
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
45-
#if SOC_I2S_SUPPORT_SLEEP_RETENTION
45+
#if SOC_I2S_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
4646
// check if the power domain also is powered down
4747
TEST_ASSERT_EQUAL(allow_power_down ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
4848
#endif

components/esp_driver_ledc/test_apps/ledc/main/test_ledc_sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void test_ledc_sleep_retention(bool allow_pd)
5959

6060
printf("Check if the sleep happened as expected\r\n");
6161
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
62-
#if SOC_PMU_SUPPORTED
62+
#if SOC_PMU_SUPPORTED && !SOC_PM_TOP_PD_NOT_ALLOWED
6363
// check if the TOP power domain on/off as desired
6464
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
6565
#endif

components/esp_driver_mcpwm/test_apps/mcpwm/main/test_mcpwm_sleep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void test_mcpwm_timer_sleep_retention(bool allow_pd)
8484

8585
printf("check if the sleep happened as expected\r\n");
8686
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
87-
#if SOC_MCPWM_SUPPORT_SLEEP_RETENTION
87+
#if SOC_MCPWM_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
8888
// check if the power domain also is powered down
8989
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
9090
#endif
@@ -189,7 +189,7 @@ static void test_mcpwm_capture_timer_sleep_retention(bool allow_pd)
189189

190190
printf("check if the sleep happened as expected\r\n");
191191
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
192-
#if SOC_MCPWM_SUPPORT_SLEEP_RETENTION
192+
#if SOC_MCPWM_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
193193
// check if the power domain also is powered down
194194
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
195195
#endif

components/esp_driver_parlio/test_apps/parlio/main/test_parlio_sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void test_parlio_sleep_retention(bool allow_pd)
133133

134134
printf("check if the sleep happened as expected\r\n");
135135
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
136-
#if SOC_PARLIO_SUPPORT_SLEEP_RETENTION
136+
#if SOC_PARLIO_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
137137
// check if the power domain also is powered down
138138
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
139139
#endif

components/esp_driver_rmt/test_apps/rmt/main/test_rmt_sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static void test_rmt_tx_rx_sleep_retention(bool allow_pd)
107107

108108
printf("check if the sleep happened as expected\r\n");
109109
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
110-
#if SOC_RMT_SUPPORT_SLEEP_RETENTION
110+
#if SOC_RMT_SUPPORT_SLEEP_RETENTION && !SOC_PM_TOP_PD_NOT_ALLOWED
111111
// check if the power domain also is powered down
112112
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
113113
#endif

components/esp_driver_spi/test_apps/master/main/test_spi_master.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ TEST_CASE("test_spi_master_sleep_retention", "[spi]")
18721872

18731873
// check if the sleep happened as expected
18741874
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
1875-
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
1875+
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
18761876
// check if the power domain also is powered down
18771877
TEST_ASSERT_EQUAL((buscfg.flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
18781878
#endif
@@ -1940,7 +1940,7 @@ TEST_CASE("test_spi_master_auto_sleep_retention", "[spi]")
19401940

19411941
// check if the sleep happened as expected
19421942
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
1943-
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
1943+
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
19441944
// check if the power domain also is powered down
19451945
TEST_ASSERT_EQUAL((buscfg.flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
19461946
#endif

components/esp_driver_spi/test_apps/slave/main/test_spi_slave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ TEST_CASE("test_spi_slave_sleep_retention", "[spi]")
688688

689689
// check if the sleep happened as expected
690690
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
691-
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
691+
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
692692
// check if the power domain also is powered down
693693
TEST_ASSERT_EQUAL((buscfg.flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
694694
#endif

components/esp_driver_spi/test_apps/slave_hd/main/test_spi_slave_hd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ TEST_CASE("test_spi_slave_hd_sleep_retention", "[spi]")
945945
printf("Waked up!\n");
946946
// check if the sleep happened as expected
947947
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
948-
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
948+
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
949949
// check if the power domain also is powered down
950950
TEST_ASSERT_EQUAL((bus_cfg.flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
951951
#endif
@@ -1023,7 +1023,7 @@ TEST_CASE("test_spi_slave_hd_append_sleep_retention", "[spi]")
10231023
printf("Waked up!\n");
10241024
// check if the sleep happened as expected
10251025
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
1026-
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP
1026+
#if SOC_SPI_SUPPORT_SLEEP_RETENTION && CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && !SOC_PM_TOP_PD_NOT_ALLOWED
10271027
// check if the power domain also is powered down
10281028
TEST_ASSERT_EQUAL((bus_cfg.flags & SPICOMMON_BUSFLAG_SLP_ALLOW_PD) ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
10291029
#endif

components/esp_driver_tsens/test_apps/temperature_sensor/main/test_temperature_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static void test_temperature_sensor_sleep_retention(bool allow_pd)
184184
#endif
185185
printf("check if the sleep happened as expected\r\n");
186186
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
187-
#if SOC_TEMPERATURE_SENSOR_UNDER_PD_TOP_DOMAIN
187+
#if SOC_TEMPERATURE_SENSOR_UNDER_PD_TOP_DOMAIN && !SOC_PM_TOP_PD_NOT_ALLOWED
188188
// check if the power domain also is powered down
189189
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
190190
#elif CONFIG_IDF_TARGET_ESP32P4

0 commit comments

Comments
 (0)