aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx/adc_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-24 21:25:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-24 21:25:10 +0000
commitf3bbf4800acff7c34a24306c534b7414fd481b6a (patch)
tree4fd767ba09d65f6e3600fa387de35e2d1262494a /os/hal/platforms/STM32F4xx/adc_lld.c
parente6b38cdd3741b822c3be51aba268f90fc1771032 (diff)
downloadChibiOS-f3bbf4800acff7c34a24306c534b7414fd481b6a.tar.gz
ChibiOS-f3bbf4800acff7c34a24306c534b7414fd481b6a.tar.bz2
ChibiOS-f3bbf4800acff7c34a24306c534b7414fd481b6a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3525 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/adc_lld.c')
-rw-r--r--os/hal/platforms/STM32F4xx/adc_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.c b/os/hal/platforms/STM32F4xx/adc_lld.c
index a4bfac99f..777804b5a 100644
--- a/os/hal/platforms/STM32F4xx/adc_lld.c
+++ b/os/hal/platforms/STM32F4xx/adc_lld.c
@@ -276,6 +276,7 @@ void adc_lld_start(ADCDriver *adcp) {
/* ADC initial setup, starting the analog part here in order to reduce
the latency when starting a conversion.*/
adcp->adc->CR1 = 0;
+ adcp->adc->CR2 = 0;
adcp->adc->CR2 = ADC_CR2_ADON;
}
}