Re: Asynchronous input - callback only

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 
re-enable interrupts after handling them, unlike the older versions of 
RTAI.  You should be able to fix it for yourself by putting a 
rt_enable_irq(irq) call at the end of handle_void_irq() in comedi/rt.c.

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA61Ye5vihyNWuA4URAhLSAKClcxBDcJvSLfTOe4g/82saHSAhdgCaAlka
LGE7gTatDVrKkilYkOIeMgM=
=t+MT
-----END PGP SIGNATURE-----

Received on 2004-07-07Z00:47:10