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:
parent
c8f4455ef8
commit
de1bfd6a6e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue