Re: Using comedi_parport to catch interrupts in real-time?

On Fri, May 31, 2002 at 02:21:47PM -0600, John Sims wrote:
> Has anyone used comedi_parport to catch interrupts via pin 10 of the parallel 
> port?  I have the demo ledclock program running un user space, and it catches 
> interrupts just fine.  However, if  I take the same command settings, device, 
> subdevice settings, etc and put them in a real-time module, and attempt to 
> have a callback invoked, nothing happens.

There's a bug in the driver.



dave...


Index: comedi/drivers/comedi_parport.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/comedi_parport.c,v
retrieving revision 1.21
diff -u -r1.21 comedi_parport.c
--- comedi/drivers/comedi_parport.c	16 May 2002 22:13:38 -0000	1.21
+++ comedi/drivers/comedi_parport.c	4 Jun 2002 17:02:37 -0000
_at__at_ -279,6 +279,7 _at__at_
 		s->async->buf_int_ptr=0;
 		s->async->events |= COMEDI_CB_EOBUF;
 	}
+	s->async->events |= COMEDI_CB_EOS;
 	
 	comedi_event(dev,s,s->async->events);
 }

Received on 2002-06-04Z16:20:10