Fixed ADC shutdown issue

This commit is contained in:
Lorenz Meier 2012-11-14 09:41:31 +01:00
parent 141dcef124
commit 47bf438661
1 changed files with 2 additions and 5 deletions

View File

@ -1427,15 +1427,12 @@ static void adc_shutdown(FAR struct adc_dev_s *dev)
/* power down ADC */
adc_enable(priv, false);
adc_rxint(priv, false);
adc_rxint(dev, false);
/* Disable ADC interrupts and detach the ADC interrupt handler */
up_disable_irq(priv->irq);
// irq_detach(priv->irq);
// XXX Why is irq_detach here commented out?
}
/****************************************************************************