Patch from abbotti@mev.co.uk (Ian Abbott) which makes external
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 16 Jan 2006 15:02:29 +0000 (15:02 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 16 Jan 2006 15:02:29 +0000 (15:02 +0000)
input the default source for counter channel 0.

comedi/drivers/adv_pci1710.c

index 5a33a6e51e0523c67d5527569f6b98a597cdf6e7..f0239c77592602bf2908e703070f045b0601637d 100644 (file)
@@ -1157,7 +1157,7 @@ static int pci171x_reset(comedi_device *dev)
 {
        DPRINTK("adv_pci1710 EDBG: BGN: pci171x_reset(...)\n");
        outw(0x30, dev->iobase + PCI171x_CNTCTRL);
-       devpriv->CntrlReg=Control_SW;   // Software trigger, CNT0=100kHz
+       devpriv->CntrlReg=Control_SW | Control_CNT0;    // Software trigger, CNT0=external
        outw(devpriv->CntrlReg, dev->iobase+PCI171x_CONTROL);   // reset any operations
        outb(0, dev->iobase + PCI171x_CLRFIFO);         // clear FIFO
        outb(0, dev->iobase + PCI171x_CLRINT);          // clear INT request