From: Ian Abbott Date: Fri, 23 Nov 2007 17:09:08 +0000 (+0000) Subject: For AI command, allow scan_begin_src == EXT_TRIG for PCI260+ (but not PCI260). X-Git-Tag: v0_7_76~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0429c13da14937d0f634292645fb7245aab2f1b;p=comedi.git For AI command, allow scan_begin_src == EXT_TRIG for PCI260+ (but not PCI260). It will use the EXTTRIG/EXTCONVCLK input on pin 17 instead of the PPIC0 input that is used for PCI230. --- diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index 117857d6..884aabd0 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -1281,9 +1281,10 @@ static int pci230_ai_cmdtest(comedi_device * dev, comedi_subdevice * s, tmp = cmd->scan_begin_src; /* Unfortunately, we cannot trigger a scan off an external source - * on the PCI260 board, since it uses the PPI0 (DIO) input, which - * isn't present on the PCI260 */ - if (thisboard->have_dio) { + * on the PCI260 board, since it uses the PPIC0 (DIO) input, which + * isn't present on the PCI260. For PCI260+ we can use the + * EXTTRIG/EXTCONVCLK input on pin 17 instead. */ + if ((thisboard->have_dio) || (thisboard->min_hwver > 0)) { cmd->scan_begin_src &= TRIG_FOLLOW | TRIG_TIMER | TRIG_INT | TRIG_EXT; } else {