Re: Asynchronous input - callback only

> On Tuesday 06 July 2004 07:30 pm, Tim Lee wrote:
> >
> > I tried reading from just one channel and setting
> the
> > TRIG_WAKE_EOS flag and both these things worked. I
> > verified that the data was really being received
> at
> > the end of each scan. I then set the flag to
> > TRIG_WAKE_EOS | TRIG_RT, and in this case, the
> data
> > was only read once.  I don't know if this is
> expected
> > behaviour though, since this is running from user
> > space instead of kernel space.  I took out the
> TRIG_RT
> > flag in the kernel module based off of it.c and
> got
> > the same behaviour as before (callback is only
> called
> > once).
> >
> 
> Ah, the problem seems to be that RTAI-adeos requires
> us to manually=20
> re-enable interrupts after handling them, unlike the
> older versions of=20
> RTAI.  You should be able to fix it for yourself by
> putting a=20
> rt_enable_irq(irq) call at the end of
> handle_void_irq() in comedi/rt.c.
> 

Awesome, that works.  Thanks for the quick replies.

Thanks,

Tim


		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Received on 2004-07-07Z20:53:31