fix(bbpll): fix bbpll calibration may stop early bug (S3)

pull/13426/head
chaijie@espressif.com 2023-11-03 14:33:20 +08:00 zatwierdzone przez Xiao Xufeng
rodzic bb8dd9d35b
commit 8f581352e0
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -277,6 +277,7 @@ void rtc_clk_bbpll_configure(rtc_xtal_freq_t xtal_freq, int pll_freq)
REGI2C_WRITE_MASK(I2C_BBPLL, I2C_BBPLL_OC_VCO_DBIAS, dbias);
/* WAIT CALIBRATION DONE */
while (!GET_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_CAL_DONE));
esp_rom_delay_us(10);
/* BBPLL CALIBRATION STOP */
CLEAR_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_STOP_FORCE_LOW);
SET_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_STOP_FORCE_HIGH);