From d5396e1d84e7d1d094caf69710ebd21134904b36 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Wed, 16 Aug 2023 20:44:16 +0800 Subject: [PATCH] fix(esp_hw_support): fix esp32h2 wakeup process access flash cause crash --- components/esp_hw_support/modem_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/modem_clock.c b/components/esp_hw_support/modem_clock.c index 6506c7c625..56b6a2e718 100644 --- a/components/esp_hw_support/modem_clock.c +++ b/components/esp_hw_support/modem_clock.c @@ -284,7 +284,7 @@ void IRAM_ATTR modem_clock_module_mac_reset(periph_module_t module) #define PHY_CLOCK_DEPS (BIT(MODEM_CLOCK_I2C_MASTER) | BIT(MODEM_CLOCK_FE)) #define I2C_ANA_MST_CLOCK_DEPS (BIT(MODEM_CLOCK_I2C_MASTER)) -static inline uint32_t modem_clock_get_module_deps(periph_module_t module) +static IRAM_ATTR uint32_t modem_clock_get_module_deps(periph_module_t module) { uint32_t deps = 0; if (module == PERIPH_ANA_I2C_MASTER_MODULE) {deps = I2C_ANA_MST_CLOCK_DEPS;}