From 60b604ae6dfab9e8b636f37819a10f737d075643 Mon Sep 17 00:00:00 2001 From: fuzhibo Date: Wed, 24 Mar 2021 15:43:47 +0800 Subject: [PATCH] rtc: compile the regi2c_ctrl.c code to iram --- components/soc/linker.lf | 2 ++ components/soc/src/esp32s2/regi2c_ctrl.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/soc/linker.lf b/components/soc/linker.lf index 0b97609860..bf6a5822c7 100644 --- a/components/soc/linker.lf +++ b/components/soc/linker.lf @@ -2,6 +2,8 @@ archive: libsoc.a entries: cpu_util (noflash_text) + if IDF_TARGET_ESP32S2 = y: + regi2c_ctrl (noflash) rtc_clk (noflash) rtc_clk_init (noflash_text) rtc_init (noflash_text) diff --git a/components/soc/src/esp32s2/regi2c_ctrl.c b/components/soc/src/esp32s2/regi2c_ctrl.c index 88ec4fa0f9..d7439bc97e 100644 --- a/components/soc/src/esp32s2/regi2c_ctrl.c +++ b/components/soc/src/esp32s2/regi2c_ctrl.c @@ -12,12 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "esp_err.h" #include "soc/soc.h" #include "soc/apb_ctrl_reg.h" #include "regi2c_ctrl.h" #include "regi2c_brownout.h" -#include "esp_log.h" #define I2C_RTC_WIFI_CLK_EN (APB_CTRL_WIFI_CLK_EN_REG)