2121#include "esp_private/periph_ctrl.h"
2222#include "esp_private/esp_task_wdt_impl.h"
2323
24- #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_TIMER_SUPPORT_SLEEP_RETENTION
24+ #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_MWDT_SUPPORT_SLEEP_RETENTION
2525#include "esp_private/sleep_retention.h"
2626#endif
2727
@@ -46,7 +46,7 @@ typedef struct {
4646 * init function. */
4747static twdt_ctx_hard_t init_context ;
4848
49- #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_TIMER_SUPPORT_SLEEP_RETENTION
49+ #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_MWDT_SUPPORT_SLEEP_RETENTION
5050static const char * TAG = "task_wdt" ;
5151static esp_err_t sleep_task_wdt_retention_init (void * arg )
5252{
@@ -124,7 +124,7 @@ esp_err_t esp_task_wdt_impl_timer_allocate(const esp_task_wdt_config_t *config,
124124 /* Return the implementation context to the caller */
125125 * obj = (twdt_ctx_t ) ctx ;
126126
127- #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_TIMER_SUPPORT_SLEEP_RETENTION
127+ #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_MWDT_SUPPORT_SLEEP_RETENTION
128128 esp_task_wdt_retention_enable (TWDT_TIMER_GROUP );
129129#endif
130130 }
@@ -171,7 +171,7 @@ void esp_task_wdt_impl_timer_free(twdt_ctx_t obj)
171171 /* Deregister interrupt */
172172 ESP_ERROR_CHECK (esp_intr_free (ctx -> intr_handle ));
173173
174- #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_TIMER_SUPPORT_SLEEP_RETENTION
174+ #if CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && SOC_MWDT_SUPPORT_SLEEP_RETENTION
175175 ESP_ERROR_CHECK (esp_task_wdt_retention_disable (TWDT_TIMER_GROUP ));
176176#endif
177177 }
0 commit comments