From 232d53b8abdad3803e419cfeea5137d53d7cddcf Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 22 Jul 2001 05:02:42 +0000 Subject: [PATCH] added reset and sync of adc circuitry to attach as recommened by manual --- comedi/drivers/ni_at_a2150.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.26.2