Skip to content
Commit 97c03182 authored by Francois Ramu's avatar Francois Ramu Committed by Christopher Friedt
Browse files

drivers: adc: stm32 disable the ADC before setting the Oversampling



On those STM32 series, setting of this feature is conditioned to
the ADC state: it is allowed to set/reset the oversampler (OVSE bit)
and set the Oversampling ratio (OVSR bits) in the ADC_CFGR2 register
only when ADC is disabled or enabled without conversion on going.
Then is the ADC re-enabled.

Signed-off-by: default avatarFrancois Ramu <francois.ramu@st.com>
parent 572ab242
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment