From 06a849b33ef3894702f7c6c55c1f8348c473bc36 Mon Sep 17 00:00:00 2001 From: Almir Okato Date: Thu, 1 Jul 2021 12:50:14 -0300 Subject: [PATCH] rtc: Add missing esp_rom_sys.h header in rtc clk rtc_clk.c for esp32, esp32s2 and esp32s3 did not include the esp_rom_sys.h header which could cause implicit declaration issues for some function calls. --- components/esp_hw_support/port/esp32/rtc_clk.c | 1 + components/esp_hw_support/port/esp32s2/rtc_clk.c | 1 + components/esp_hw_support/port/esp32s3/rtc_clk.c | 1 + 3 files changed, 3 insertions(+) diff --git a/components/esp_hw_support/port/esp32/rtc_clk.c b/components/esp_hw_support/port/esp32/rtc_clk.c index dc20cd378c..b10eb6c518 100644 --- a/components/esp_hw_support/port/esp32/rtc_clk.c +++ b/components/esp_hw_support/port/esp32/rtc_clk.c @@ -29,6 +29,7 @@ #include "soc/gpio_struct.h" #include "hal/cpu_hal.h" #include "hal/gpio_ll.h" +#include "esp_rom_sys.h" #include "regi2c_ctrl.h" #include "soc_log.h" #include "sdkconfig.h" diff --git a/components/esp_hw_support/port/esp32s2/rtc_clk.c b/components/esp_hw_support/port/esp32s2/rtc_clk.c index 159f815298..937b5fd12c 100644 --- a/components/esp_hw_support/port/esp32s2/rtc_clk.c +++ b/components/esp_hw_support/port/esp32s2/rtc_clk.c @@ -27,6 +27,7 @@ #include "soc/dport_reg.h" #include "soc/efuse_reg.h" #include "soc/syscon_reg.h" +#include "esp_rom_sys.h" #include "regi2c_ctrl.h" #include "soc_log.h" #include "rtc_clk_common.h" diff --git a/components/esp_hw_support/port/esp32s3/rtc_clk.c b/components/esp_hw_support/port/esp32s3/rtc_clk.c index e847676f87..ec270a8c7f 100644 --- a/components/esp_hw_support/port/esp32s3/rtc_clk.c +++ b/components/esp_hw_support/port/esp32s3/rtc_clk.c @@ -28,6 +28,7 @@ #include "soc/efuse_reg.h" #include "soc/syscon_reg.h" #include "soc/system_reg.h" +#include "esp_rom_sys.h" #include "regi2c_ctrl.h" #include "soc_log.h" #include "rtc_clk_common.h"