From: Frank Mori Hess Date: Sun, 22 Jul 2001 05:02:42 +0000 (+0000) Subject: added reset and sync of adc circuitry to attach as recommened by manual X-Git-Tag: r0_7_60~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=232d53b8abdad3803e419cfeea5137d53d7cddcf;p=comedi.git added reset and sync of adc circuitry to attach as recommened by manual --- diff --git a/comedi/drivers/ni_at_a2150.c b/comedi/drivers/ni_at_a2150.c index ca0d5b5c..fd360935 100644 --- a/comedi/drivers/ni_at_a2150.c +++ b/comedi/drivers/ni_at_a2150.c @@ -425,6 +425,9 @@ static int a2150_attach(comedi_device *dev, comedi_devconfig *it) // set card's irq and dma levels outw(devpriv->irq_dma_bits, dev->iobase + IRQ_DMA_CNTRL_REG); + + // reset and sync adc clock circuitry + outw_p(APD_BIT, dev->iobase + CONFIG_REG); // initialize configuration register devpriv->config_bits = 0; outw(devpriv->config_bits, dev->iobase + CONFIG_REG);