diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-16 19:52:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-16 19:52:54 +0000 |
commit | d70b7e599250fae96dbdc9cbfab11bb9c6d5a649 (patch) | |
tree | aed21f73da3b479b207845691b13af8031815e66 | |
parent | eb37378b3e424589a37e525bb4080cc667bbe0fc (diff) | |
download | ChibiOS-d70b7e599250fae96dbdc9cbfab11bb9c6d5a649.tar.gz ChibiOS-d70b7e599250fae96dbdc9cbfab11bb9c6d5a649.tar.bz2 ChibiOS-d70b7e599250fae96dbdc9cbfab11bb9c6d5a649.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3503 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM32F4xx/adc_lld.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.c b/os/hal/platforms/STM32F4xx/adc_lld.c index f34c4fd61..97d1623d8 100644 --- a/os/hal/platforms/STM32F4xx/adc_lld.c +++ b/os/hal/platforms/STM32F4xx/adc_lld.c @@ -178,9 +178,9 @@ void adc_lld_init(void) { #if STM32_ADC_USE_ADC2
/* Driver initialization.*/
adcObjectInit(&ADCD2);
- ADCD1.adc = ADC2;
- ADCD1.dmastp = STM32_DMA_STREAM(STM32_ADC_ADC2_DMA_STREAM);
- ADCD1.dmamode = STM32_DMA_CR_CHSEL(ADC2_DMA_CHANNEL) |
+ ADCD2.adc = ADC2;
+ ADCD2.dmastp = STM32_DMA_STREAM(STM32_ADC_ADC2_DMA_STREAM);
+ ADCD2.dmamode = STM32_DMA_CR_CHSEL(ADC2_DMA_CHANNEL) |
STM32_DMA_CR_PL(STM32_ADC_ADC2_DMA_PRIORITY) |
STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_PSIZE_HWORD |
STM32_DMA_CR_MINC | STM32_DMA_CR_TCIE |
@@ -190,9 +190,9 @@ void adc_lld_init(void) { #if STM32_ADC_USE_ADC3
/* Driver initialization.*/
adcObjectInit(&ADCD3);
- ADCD1.adc = ADC3;
- ADCD1.dmastp = STM32_DMA_STREAM(STM32_ADC_ADC3_DMA_STREAM);
- ADCD1.dmamode = STM32_DMA_CR_CHSEL(ADC3_DMA_CHANNEL) |
+ ADCD3.adc = ADC3;
+ ADCD3.dmastp = STM32_DMA_STREAM(STM32_ADC_ADC3_DMA_STREAM);
+ ADCD3.dmamode = STM32_DMA_CR_CHSEL(ADC3_DMA_CHANNEL) |
STM32_DMA_CR_PL(STM32_ADC_ADC3_DMA_PRIORITY) |
STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_PSIZE_HWORD |
STM32_DMA_CR_MINC | STM32_DMA_CR_TCIE |
|