From: Frank Mori Hess Date: Mon, 25 Jun 2001 17:05:16 +0000 (+0000) Subject: fixed error, added some comments X-Git-Tag: r0_7_60~131 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=26a246ce33b87a0cbe28db5611e77fe10116e401;p=comedi.git fixed error, added some comments --- diff --git a/comedi/drivers/skel.c b/comedi/drivers/skel.c index bb46e7cb..5b5424e2 100644 --- a/comedi/drivers/skel.c +++ b/comedi/drivers/skel.c @@ -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; }