From 4f6e564d721c343592c786a42901303147edb35b Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 26 Apr 2002 18:28:11 +0000 Subject: [PATCH] Moved comments to documentation area. Fixed initialization problem for local variable. --- comedi/drivers/pcl816.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/comedi/drivers/pcl816.c b/comedi/drivers/pcl816.c index 1f536cd2..b4a826dc 100644 --- a/comedi/drivers/pcl816.c +++ b/comedi/drivers/pcl816.c @@ -20,20 +20,18 @@ PCL 816 and 814B have 16 SE/DIFF ADCs, 16 DACs, 16 DI and 16 DO. Differences are at resolution (16 vs 12 bits). The driver support AI command mode, other subdevices not written. -See the head of the source file pcl816.c for configuration options. -*/ -/* - Options for PCL-816: - [0] - IO Base - [1] - IRQ (0=disable, 2, 3, 4, 5, 6, 7) - [2] - DMA (0=disable, 1, 3) - [3] - 0, 10=10MHz clock for 8254 - 1= 1MHz clock for 8254 - Notes: - WARNING: AO, DI, and DO are not implemented!!!! +Analog output and digital input and output are not supported. + +Configuration Options: + [0] - IO Base + [1] - IRQ (0=disable, 2, 3, 4, 5, 6, 7) + [2] - DMA (0=disable, 1, 3) + [3] - 0, 10=10MHz clock for 8254 + 1= 1MHz clock for 8254 */ + #define DEBUG(x) x #include @@ -1026,7 +1024,7 @@ pcl816_attach (comedi_device * dev, comedi_devconfig * it) int iobase; int irq, dma; unsigned long pages; - int i; + //int i; comedi_subdevice *s; /* claim our I/O space */ @@ -1192,7 +1190,7 @@ no_dma: s->subdev_flags = SDF_READABLE | SDF_RT; s->n_chan = this_board->n_aichan; s->subdev_flags |= SDF_DIFF; - printk (", %dchans DIFF DAC - %d", s->n_chan, i); + //printk (", %dchans DIFF DAC - %d", s->n_chan, i); s->maxdata = this_board->ai_maxdata; s->len_chanlist = this_board->ai_chanlist; s->range_table = this_board->ai_range_type; -- 2.26.2