generate overflow events when ai fifo overflows with pio transfers
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 01:13:13 +0000 (01:13 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 01:13:13 +0000 (01:13 +0000)
comedi/drivers/ni_mio_common.c

index c8fbf2abb7fe4f3243e1644507614223957b7cb2..4bf0c1d418cf6152713df9faddd80bb74f983af7 100644 (file)
@@ -603,6 +603,9 @@ static void handle_a_interrupt(comedi_device *dev,unsigned short status,
                        shutdown_ai_command( dev );
 
                        s->async->events |= COMEDI_CB_ERROR;
+                       if(status & (AI_Overrun_St | AI_Overflow_St))
+                               s->async->events |= COMEDI_CB_OVERFLOW;
+                       
                        comedi_event(dev,s,s->async->events);
 
                        return;