aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-19 09:37:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-11-19 09:37:41 +0000
commitba01ba301e003f5022c5d406e785de4bc65d70fc (patch)
tree387e78147407462343efbe4ea47d6775c19bd3f9 /os/hal/platforms
parentb1762e9295dfe92f8d682aba3954adde498ff129 (diff)
downloadChibiOS-ba01ba301e003f5022c5d406e785de4bc65d70fc.tar.gz
ChibiOS-ba01ba301e003f5022c5d406e785de4bc65d70fc.tar.bz2
ChibiOS-ba01ba301e003f5022c5d406e785de4bc65d70fc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3510 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32F4xx/adc_lld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.c b/os/hal/platforms/STM32F4xx/adc_lld.c
index b31ca178c..29ed6fcc2 100644
--- a/os/hal/platforms/STM32F4xx/adc_lld.c
+++ b/os/hal/platforms/STM32F4xx/adc_lld.c
@@ -266,7 +266,8 @@ void adc_lld_start(ADCDriver *adcp) {
}
#endif /* STM32_ADC_USE_ADC3 */
- /* ADC initial setup, starting the analog part.*/
+ /* 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 = ADC_CR2_ADON;
}