From: Frank Mori Hess Date: Mon, 16 Jan 2006 15:02:29 +0000 (+0000) Subject: Patch from abbotti@mev.co.uk (Ian Abbott) which makes external X-Git-Tag: r0_7_71~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0585f37b44fec88fa167bae9bcecbc6b122babce;p=comedi.git Patch from abbotti@mev.co.uk (Ian Abbott) which makes external input the default source for counter channel 0. --- diff --git a/comedi/drivers/adv_pci1710.c b/comedi/drivers/adv_pci1710.c index 5a33a6e5..f0239c77 100644 --- a/comedi/drivers/adv_pci1710.c +++ b/comedi/drivers/adv_pci1710.c @@ -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