fixed error, added some comments
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 25 Jun 2001 17:05:16 +0000 (17:05 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 25 Jun 2001 17:05:16 +0000 (17:05 +0000)
comedi/drivers/skel.c

index bb46e7cb316bba25bc33c87b2a721c2d5cc91d97..5b5424e24c0725bcd2a72b6b845867346809de26 100644 (file)
@@ -330,8 +330,8 @@ static int skel_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,
           cmd->scan_begin_src!=TRIG_EXT)err++;
        if(cmd->convert_src!=TRIG_TIMER &&
           cmd->convert_src!=TRIG_EXT)err++;
-       if(cmd->stop_src!=TRIG_TIMER &&
-          cmd->stop_src!=TRIG_EXT)err++;
+       if(cmd->stop_src!=TRIG_COUNT &&
+          cmd->stop_src!=TRIG_NONE)err++;
 
        if(err)return 2;
 
@@ -431,6 +431,12 @@ static int skel_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,
 static int skel_ns_to_timer(unsigned int *ns,int round)
 {
        /* trivial timer */
+       /* if your timing is done through two cascaded timers, the
+        * i8253_cascade_ns_to_timer() function in 8253.h can be
+        * very helpful.  There are also i8254_load() and i8254_mm_load()
+        * which can be used to load values into the ubiquitous 8254 counters
+        */
+
        return *ns;
 }