mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-24 09:30:15 +00:00
refactor(clk): add soc_clk_calibration_clk_src_t for all targets
Cleaned up RTC calibration clock selection code
This commit is contained in:
@@ -484,6 +484,16 @@ typedef enum {
|
||||
CLKOUT_SIG_INVALID = 0xFF,
|
||||
} soc_clkout_sig_id_t;
|
||||
|
||||
////////////////////////////////////////////RTC CALIBRATION///////////////////////////////////////////////////////////
|
||||
/**
|
||||
* @brief Clock frequency calibration source selection
|
||||
*/
|
||||
typedef enum {
|
||||
CLK_CAL_RTC_SLOW, /*!< Select to calibrate RTC_SLOW_CLK */
|
||||
CLK_CAL_RC_FAST_D256, /*!< Select to calibrate RC_FAST_D256_CLK */
|
||||
CLK_CAL_32K_XTAL, /*!< Select to calibrate XTAL32K_CLK */
|
||||
} soc_timg0_calibration_clk_src_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -347,7 +347,7 @@ typedef union {
|
||||
*/
|
||||
uint32_t rtc_cali_start_cycling: 1;
|
||||
/** rtc_cali_clk_sel : R/W; bitpos: [14:13]; default: 1;
|
||||
* 0:rtcslowclock. 1:clk_80m. 2:xtal_32k.
|
||||
* 0:rtc_slow_clock. 1:rc_fast_div_clk. 2:xtal_32k.
|
||||
*/
|
||||
uint32_t rtc_cali_clk_sel: 2;
|
||||
/** rtc_cali_rdy : RO; bitpos: [15]; default: 0;
|
||||
|
Reference in New Issue
Block a user