soc/rtc: add support for external 32k oscillator

Compared to external 32k XTAL, when active oscillator is used as input,
some parameters need to be set differently.
This commit is contained in:
Ivan Grokhotkov
2018-08-13 01:10:29 +03:00
parent 9efc06be0f
commit 8365f0f5d2
2 changed files with 17 additions and 3 deletions

View File

@@ -193,6 +193,11 @@ void rtc_clk_xtal_freq_update(rtc_xtal_freq_t xtal_freq);
*/
void rtc_clk_32k_enable(bool en);
/**
* @brief Configure 32 kHz XTAL oscillator to accept external clock signal
*/
void rtc_clk_32k_enable_external();
/**
* @brief Get the state of 32k XTAL oscillator
* @return true if 32k XTAL oscillator has been enabled