diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-29 13:41:55 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-29 13:41:55 +0000 |
commit | bead7f814f33acc7f81dbf4dd554c256324adf74 (patch) | |
tree | b8ef5b1868b8f3c4fbd1554f94819ee9fd40bec6 /os/hal | |
parent | 0ea17958535e56f50064ae47a50a3cd742f88163 (diff) | |
download | ChibiOS-bead7f814f33acc7f81dbf4dd554c256324adf74.tar.gz ChibiOS-bead7f814f33acc7f81dbf4dd554c256324adf74.tar.bz2 ChibiOS-bead7f814f33acc7f81dbf4dd554c256324adf74.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2145 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/adc_lld.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/adc_lld.c b/os/hal/platforms/STM32/adc_lld.c index 0cf60666a..9a506d150 100644 --- a/os/hal/platforms/STM32/adc_lld.c +++ b/os/hal/platforms/STM32/adc_lld.c @@ -159,7 +159,6 @@ void adc_lld_start(ADCDriver *adcp) { dmaEnable(DMA1_ID); /* NOTE: Must be enabled before the IRQs.*/
NVICEnableVector(DMA1_Channel1_IRQn,
CORTEX_PRIORITY_MASK(STM32_ADC_ADC1_IRQ_PRIORITY));
-// DMA1_Channel1->CPAR = (uint32_t)&ADC1->DR;
dmaChannelSetPeripheral(adcp->ad_dmachp, &ADC1->DR);
RCC->APB2ENR |= RCC_APB2ENR_ADC1EN;
}
@@ -237,7 +236,6 @@ void adc_lld_start_conversion(ADCDriver *adcp) { void adc_lld_stop_conversion(ADCDriver *adcp) {
dmaChannelDisable(adcp->ad_dmachp);
-// adcp->ad_dmap->channels[STM32_DMA_CHANNEL_1].CCR = 0;
adcp->ad_adc->CR2 = 0;
}
|