From fb72a6f629a62c0655e8eff1d2d3f67d7aa9b62c Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 27 Aug 2019 00:22:10 +0200 Subject: [PATCH] bootloader: add definition of esp_clk_apb_freq Commit 8cd04c80 has added a dependency of efuse component on esp_clk_apb_freq, however there was no definition of this function in the bootloader context. Reported at https://esp32.com/viewtopic.php?f=13&t=12035 --- components/bootloader_support/src/bootloader_clock.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/bootloader_support/src/bootloader_clock.c b/components/bootloader_support/src/bootloader_clock.c index 3befda16dd..a40cb0688f 100644 --- a/components/bootloader_support/src/bootloader_clock.c +++ b/components/bootloader_support/src/bootloader_clock.c @@ -58,3 +58,12 @@ void bootloader_clock_configure(void) } #endif } + +#ifdef BOOTLOADER_BUILD + +int esp_clk_apb_freq(void) +{ + return rtc_clk_apb_freq_get(); +} + +#endif // BOOTLOADER_BUILD