comedi_krange *user_ai_range, *user_ao_range;
iobase = it->options[0];
-
+ irq = it->options[1];
+ timer_mode = it->options[8];
+ if( timer_mode ) irq = 0;
+
printk("comedi%d: das16:",dev->minor);
// check that clock setting is valid
}
/* now for the irq */
- irq = it->options[1];
- if(irq > 1 && irq < 8)
+ if( irq > 1 && irq < 8 )
{
if((ret=comedi_request_irq(irq, das16_dma_interrupt, 0, "das16",dev)) < 0)
return ret;
user_ao_range->flags = UNIT_volt;
}
- timer_mode = it->options[8];
if(timer_mode)
{
init_timer(&(devpriv->timer));