added reset and sync of adc circuitry to attach as recommened by manual
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 22 Jul 2001 05:02:42 +0000 (05:02 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 22 Jul 2001 05:02:42 +0000 (05:02 +0000)
comedi/drivers/ni_at_a2150.c

index ca0d5b5ccfffb3f32c8c614e8f278978e311a57e..fd360935f61f955530a49e69ad400519e5159c1c 100644 (file)
@@ -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);