drivers: adc: stm32 adc fixing calibration for the stm32F1 serie

Configure the sw trigger just after calibration
So the conversion can start on regular channel on the
software control bit.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2023-11-24 17:18:35 +01:00 committed by Carles Cufí
commit de1bfd6a6e

View file

@ -1379,6 +1379,7 @@ static int adc_stm32_init(const struct device *dev)
#if defined(HAS_CALIBRATION)
adc_stm32_calibrate(dev);
LL_ADC_REG_SetTriggerSource(adc, LL_ADC_REG_TRIG_SOFTWARE);
#endif /* HAS_CALIBRATION */
adc_context_unlock_unconditionally(&data->ctx);