mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 02:50:58 +02:00
rtc_clk: Clean up some clock related enum and macro in soc/rtc.h, replace with new ones in
soc/clk_tree_defs.h
This commit is contained in:
@@ -43,7 +43,7 @@ uint32_t periph_rtc_dig_clk8m_get_freq(void)
|
||||
{
|
||||
#if CONFIG_IDF_TARGET_ESP32H2
|
||||
/* Workaround: H2 doesn't have 8MD256 clk, so calibration cannot be done, we just return its theoretic frequency */
|
||||
return RTC_FAST_CLK_FREQ_APPROX;
|
||||
return SOC_CLK_RC_FAST_FREQ_APPROX;
|
||||
#else
|
||||
return s_rtc_clk_freq * 256;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user