fix(adc): fix adc oneshot mod do not split clk

pull/13426/head
gaoxu 2023-10-27 10:55:01 +08:00
rodzic aee6e63337
commit a80fb72f77
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -491,6 +491,8 @@ static bool adc_hal_intr_get_raw(adc_hal_event_t event)
//--------------------Single Read-------------------------------//
static void adc_hal_onetime_start(void)
{
adc_ll_digi_controller_clk_div(ADC_LL_CLKM_DIV_NUM_DEFAULT, ADC_LL_CLKM_DIV_B_DEFAULT, ADC_LL_CLKM_DIV_A_DEFAULT);
adc_ll_digi_set_clk_div(SOC_ADC_DIGI_SAR_CLK_DIV_DEFAULT);
/**
* There is a hardware limitation. If the APB clock frequency is high, the step of this reg signal: ``onetime_start`` may not be captured by the
* ADC digital controller (when its clock frequency is too slow). A rough estimate for this step should be at least 3 ADC digital controller