diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-16 20:50:28 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-16 20:50:28 +0000 |
commit | fa2749737e50b08493a1d1440bc9d730139d3264 (patch) | |
tree | 32b5be39ba83110bcd27563711dc86ebeee80e49 /os/io | |
parent | aa2f5af6f01de0e2083c2c92bc4ae2fedeac847d (diff) | |
download | ChibiOS-fa2749737e50b08493a1d1440bc9d730139d3264.tar.gz ChibiOS-fa2749737e50b08493a1d1440bc9d730139d3264.tar.bz2 ChibiOS-fa2749737e50b08493a1d1440bc9d730139d3264.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1310 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io')
-rw-r--r-- | os/io/platforms/STM32/adc_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/io/platforms/STM32/adc_lld.c b/os/io/platforms/STM32/adc_lld.c index 10fd27ec1..203b023a3 100644 --- a/os/io/platforms/STM32/adc_lld.c +++ b/os/io/platforms/STM32/adc_lld.c @@ -53,7 +53,6 @@ void adc_lld_init(void) { #if USE_STM32_ADC1
adcObjectInit(&ADCD1);
- DMA1_Channel1->CPAR = (uint32_t)ADC1->DR;
ADCD1.ad_adc = ADC1;
ADCD1.ad_dma = DMA1_Channel1;
#endif
@@ -72,6 +71,7 @@ void adc_lld_start(ADCDriver *adcp) { if (&ADCD1 == adcp) {
NVICEnableVector(DMA1_Channel1_IRQn, STM32_ADC1_IRQ_PRIORITY);
dmaEnable(DMA1_ID);
+ DMA1_Channel1->CPAR = (uint32_t)&ADC1->DR;
RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
}
#endif
|