git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4978 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
d2c0aea892
commit
a16c9cc4b1
|
@ -420,15 +420,12 @@ void adc_lld_stop(ADCDriver *adcp) {
|
|||
/* Releasing the associated DMA channel.*/
|
||||
dmaStreamRelease(adcp->dmastp);
|
||||
|
||||
/* Disabling the ADC.*/
|
||||
if (adcp->adcm->CR & ADC_CR_ADEN) {
|
||||
/* Stopping the ongoing conversion, if any.*/
|
||||
adc_lld_stop_adc(adcp);
|
||||
/* Stopping the ongoing conversion, if any.*/
|
||||
adc_lld_stop_adc(adcp);
|
||||
|
||||
/* Disabling ADC analog circuit and regulator.*/
|
||||
adc_lld_analog_off(adcp);
|
||||
adc_lld_vreg_off(adcp);
|
||||
}
|
||||
/* Disabling ADC analog circuit and regulator.*/
|
||||
adc_lld_analog_off(adcp);
|
||||
adc_lld_vreg_off(adcp);
|
||||
|
||||
#if STM32_ADC_USE_ADC1
|
||||
if (&ADCD1 == adcp)
|
||||
|
|
Loading…
Reference in New Issue