change(esp_hw_support): rename interface name of get modules bitmap to get created modules

This commit is contained in:
Li Shuai
2024-01-25 11:08:45 +08:00
parent 44644845f3
commit 7d738cae1c
5 changed files with 23 additions and 23 deletions

View File

@@ -245,7 +245,7 @@ error:
bool IRAM_ATTR peripheral_domain_pd_allowed(void)
{
const uint32_t modules = sleep_retention_get_modules();
const uint32_t created_modules = sleep_retention_get_created_modules();
const uint32_t mask = (const uint32_t) (
SLEEP_RETENTION_MODULE_INTR_MATRIX | \
SLEEP_RETENTION_MODULE_HP_SYSTEM | \
@@ -255,7 +255,7 @@ bool IRAM_ATTR peripheral_domain_pd_allowed(void)
SLEEP_RETENTION_MODULE_IOMUX | \
SLEEP_RETENTION_MODULE_SPIMEM | \
SLEEP_RETENTION_MODULE_SYSTIMER);
return ((modules & mask) == mask);
return ((created_modules & mask) == mask);
}
#if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP