- From: Frank Mori Hess <fmhess_at_users.sourceforge.net>
- Date: Tue, 6 Apr 2004 19:04:02 -0400
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 06 April 2004 03:55 pm, Luis Martínez wrote: > Hello, > > I have written some code using rtai + comedi to get data from some > sensors. I am trying to use this code with your quatech driver but it > does a segmentation fault when I make a comedi read from the any analog > input chanel. My code works OK with an advantech 1710 card so maybe the > problem is in your driver. Analog output seems to work OK however. > Going deeper in the quatech driver I have found that what makes the > program fail is the "down_interruptible" call in the analog read > function. Does anybody know if is a comedi or a kernel problem (I have > tried with several kernel versions so the kernel should not be the > problem). > > Is it possible that I cannot call down interruptible from rtai? > Yes, that's right. down_interruptible sleeps. It should probably be replaced with something similar to what other drivers do, polling for the conversion to complete and busy waiting with comedi_udelay(). - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFAczdi5vihyNWuA4URAsWZAKCTkMpVS4ZHzN1FRyDvRhbLaX0NpgCaAny4 nVWi/gkoIt3tOcetG5rjzOw= =gp8w -----END PGP SIGNATURE-----
Received on 2004-04-06Z22:04:02