mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(esp_rom): fix RTC_SLEEP_MODE_REG addr mismatch
This commit is contained in:
@@ -50,8 +50,8 @@ extern "C" {
|
|||||||
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
||||||
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
||||||
* LP_AON_STORE7_REG FAST_RTC_MEMORY_CRC
|
* LP_AON_STORE7_REG FAST_RTC_MEMORY_CRC
|
||||||
* LP_AON_STORE8_REG Store light sleep wake stub addr
|
* LP_AON_STORE8_REG Store light sleep wake stub addr (mask bit[1:0])
|
||||||
* LP_AON_STORE9_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
* LP_AON_STORE8_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
||||||
*************************************************************************************
|
*************************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ extern "C" {
|
|||||||
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
||||||
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
||||||
* LP_AON_STORE7_REG RTC fix us, low 32 bits
|
* LP_AON_STORE7_REG RTC fix us, low 32 bits
|
||||||
* LP_AON_STORE8_REG Store light sleep wake stub addr
|
* LP_AON_STORE8_REG Store light sleep wake stub addr (mask bit[1:0])
|
||||||
* LP_AON_STORE9_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
* LP_AON_STORE8_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
||||||
*************************************************************************************
|
*************************************************************************************
|
||||||
*
|
*
|
||||||
* Since esp32c61 does not support RTC mem, so use LP_AON store regs to record rtc time:
|
* Since esp32c61 does not support RTC mem, so use LP_AON store regs to record rtc time:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -52,8 +52,8 @@ extern "C" {
|
|||||||
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
* LP_AON_STORE5_REG FAST_RTC_MEMORY_LENGTH
|
||||||
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
* LP_AON_STORE6_REG FAST_RTC_MEMORY_ENTRY
|
||||||
* LP_AON_STORE7_REG FAST_RTC_MEMORY_CRC
|
* LP_AON_STORE7_REG FAST_RTC_MEMORY_CRC
|
||||||
* LP_AON_STORE8_REG Store light sleep wake stub addr
|
* LP_AON_STORE8_REG Store light sleep wake stub addr (mask bit[1:0])
|
||||||
* LP_AON_STORE9_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
* LP_AON_STORE8_REG Store the sleep mode at bit[0] (0:light sleep 1:deep sleep)
|
||||||
*************************************************************************************
|
*************************************************************************************
|
||||||
*/
|
*/
|
||||||
#define RTC_FIX_US_HIGH_REG LP_AON_STORE0_REG
|
#define RTC_FIX_US_HIGH_REG LP_AON_STORE0_REG
|
||||||
@@ -66,7 +66,7 @@ extern "C" {
|
|||||||
#define RTC_RESET_CAUSE_REG LP_AON_STORE6_REG
|
#define RTC_RESET_CAUSE_REG LP_AON_STORE6_REG
|
||||||
#define RTC_FIX_US_LOW_REG LP_AON_STORE7_REG
|
#define RTC_FIX_US_LOW_REG LP_AON_STORE7_REG
|
||||||
#define LIGHT_SLEEP_WAKE_STUB_ADDR_REG LP_AON_STORE8_REG
|
#define LIGHT_SLEEP_WAKE_STUB_ADDR_REG LP_AON_STORE8_REG
|
||||||
#define SLEEP_MODE_REG LP_AON_STORE9_REG
|
#define SLEEP_MODE_REG LP_AON_STORE8_REG
|
||||||
|
|
||||||
#define RTC_DISABLE_ROM_LOG ((1 << 0) | (1 << 16)) //!< Disable logging from the ROM code.
|
#define RTC_DISABLE_ROM_LOG ((1 << 0) | (1 << 16)) //!< Disable logging from the ROM code.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user