- From: Klaas Gadeyne <Klaas.Gadeyne_at_mech.kuleuven.ac.be>
- Date: Mon, 9 Feb 2004 09:48:44 +0100 (CET)
Hi,
following patch fixes a minor bug and a forgotten comment in the ni_660x
CVS counter driver code.
Please apply.
Regards,
klaas
=============================================================================
$ cvs diff -u ni_660x.c
Index: ni_660x.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/ni_660x.c,v
retrieving revision 1.3
diff -u -r1.3 ni_660x.c
--- ni_660x.c 24 Dec 2003 03:04:07 -0000 1.3
+++ ni_660x.c 9 Feb 2004 08:44:40 -0000
_at__at_ -688,7 +688,7 _at__at_
comedi_cmd *cmd);
static int ni_660x_GPCT_cmd(comedi_device *dev,comedi_subdevice *s);
-/* Possible instructions for Digital IO: Not implemented yet! */
+/* Possible instructions for Digital IO */
static int ni_660x_dio_insn_config(comedi_device *dev,
comedi_subdevice *s,
comedi_insn *insn,
_at__at_ -968,7 +968,7 _at__at_
(ni_660x_gpct_config[subdev_channel]).data[2] = 0;
// Reset the counter
- writew(G0Reset,dev->iobase + GPCT_OFFSET[chipset]
+ writew(GxReset(counter_channel),dev->iobase + GPCT_OFFSET[chipset]
+ registerData[GxxJointResetRegister(counter_channel)].offset);
// Disarm
writew(Disarm,dev->iobase + GPCT_OFFSET[chipset]
Received on 2004-02-09Z08:48:44