mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/deep_sleep_wakeup_stub' into 'master'
deep sleep: don't use protected DPORT access in wake stub See merge request !1194
This commit is contained in:
commit
c007213fed
@ -100,8 +100,10 @@ void esp_set_deep_sleep_wake_stub(esp_deep_sleep_wake_stub_fn_t new_stub)
|
|||||||
|
|
||||||
void RTC_IRAM_ATTR esp_default_wake_deep_sleep(void) {
|
void RTC_IRAM_ATTR esp_default_wake_deep_sleep(void) {
|
||||||
/* Clear MMU for CPU 0 */
|
/* Clear MMU for CPU 0 */
|
||||||
DPORT_REG_SET_BIT(DPORT_PRO_CACHE_CTRL1_REG, DPORT_PRO_CACHE_MMU_IA_CLR);
|
_DPORT_REG_WRITE(DPORT_PRO_CACHE_CTRL1_REG,
|
||||||
DPORT_REG_CLR_BIT(DPORT_PRO_CACHE_CTRL1_REG, DPORT_PRO_CACHE_MMU_IA_CLR);
|
_DPORT_REG_READ(DPORT_PRO_CACHE_CTRL1_REG) | DPORT_PRO_CACHE_MMU_IA_CLR);
|
||||||
|
_DPORT_REG_WRITE(DPORT_PRO_CACHE_CTRL1_REG,
|
||||||
|
_DPORT_REG_READ(DPORT_PRO_CACHE_CTRL1_REG) & (~DPORT_PRO_CACHE_MMU_IA_CLR));
|
||||||
#if CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY > 0
|
#if CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY > 0
|
||||||
// ROM code has not started yet, so we need to set delay factor
|
// ROM code has not started yet, so we need to set delay factor
|
||||||
// used by ets_delay_us first.
|
// used by ets_delay_us first.
|
||||||
|
Loading…
Reference in New Issue
Block a user