fix(ci): some actions taken to pass ci

This commit is contained in:
Lou Tianhao
2024-08-21 14:54:35 +08:00
committed by Li Shuai
parent 02f5e0f98c
commit 4393343ac9
32 changed files with 124 additions and 61 deletions
@@ -14,6 +14,7 @@
#include "esp_task_wdt.h"
#include "test_utils.h"
#include "soc/rtc.h"
#include "soc/soc_caps.h"
#if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_TIMER_SUPPORT_SLEEP_RETENTION
#include "esp_sleep.h"
@@ -63,7 +64,14 @@ TEST_CASE("Task WDT task timeout after peripheral powerdown lightsleep", "[task_
TEST_ESP_OK(sleep_cpu_configure(true));
esp_sleep_context_t sleep_ctx;
esp_sleep_set_sleep_context(&sleep_ctx);
#if SOC_PM_MMU_TABLE_RETENTION_WHEN_TOP_PD
/* There is a bug that PD TOP will reset mmu table, so we add mmu table retention during sleep,
and it will increase time overhead before entering sleep */
esp_sleep_enable_timer_wakeup(100 * 1000);
#else
esp_sleep_enable_timer_wakeup(10 * 1000);
#endif
esp_light_sleep_start();
TEST_ASSERT_EQUAL(PMU_SLEEP_PD_TOP, sleep_ctx.sleep_flags & PMU_SLEEP_PD_TOP);