From: Frank Mori Hess Date: Fri, 5 Sep 2003 22:23:46 +0000 (+0000) Subject: re-enabled ad done interrupts in ai cmd, and added check against X-Git-Tag: r0_7_69~230 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cff87c0e0dbfd6b33e3122ba24240c115f2c17ed;p=comedi.git re-enabled ad done interrupts in ai cmd, and added check against maximum board speed to ai_cmdtest --- diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index 41086868..9b4a624a 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -741,6 +741,10 @@ static int dt282x_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,comedi_cm cmd->convert_arg=SLOWEST_TIMER; err++; } + if(cmd->convert_arg < this_board->ai_speed ){ + cmd->convert_arg = this_board->ai_speed; + err++; + } if(cmd->scan_end_arg!=cmd->chanlist_len){ cmd->scan_end_arg=cmd->chanlist_len; err++; @@ -798,12 +802,12 @@ static int dt282x_ai_cmd(comedi_device * dev, comedi_subdevice * s) update_supcsr(0); } - devpriv->adcsr = DT2821_ADCLK /*| DT2821_IADDONE*/; + devpriv->adcsr = DT2821_ADCLK | DT2821_IADDONE; update_adcsr(0); dt282x_load_changain(dev,cmd->chanlist_len,cmd->chanlist); - devpriv->adcsr = DT2821_ADCLK /*| DT2821_IADDONE */; + devpriv->adcsr = DT2821_ADCLK | DT2821_IADDONE; update_adcsr(0); update_supcsr(DT2821_PRLD);