diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-24 21:00:24 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-24 21:00:24 +0000 |
commit | e6b38cdd3741b822c3be51aba268f90fc1771032 (patch) | |
tree | 492b721d215f473b76fe9ce43d0a4371f8b75795 /os/hal/platforms/STM32L1xx/adc_lld.c | |
parent | 46870077b874696c09704da37dc4c33c8eb21402 (diff) | |
download | ChibiOS-e6b38cdd3741b822c3be51aba268f90fc1771032.tar.gz ChibiOS-e6b38cdd3741b822c3be51aba268f90fc1771032.tar.bz2 ChibiOS-e6b38cdd3741b822c3be51aba268f90fc1771032.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3524 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32L1xx/adc_lld.c')
-rw-r--r-- | os/hal/platforms/STM32L1xx/adc_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32L1xx/adc_lld.c b/os/hal/platforms/STM32L1xx/adc_lld.c index 428d8e452..3d91a9991 100644 --- a/os/hal/platforms/STM32L1xx/adc_lld.c +++ b/os/hal/platforms/STM32L1xx/adc_lld.c @@ -162,10 +162,10 @@ void adc_lld_start(ADCDriver *adcp) { }
#endif /* STM32_ADC_USE_ADC1 */
-
/* 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;
}
}
|