> I think there is an example of just that at
> <http://cyberelk.net/tim/parport/html/>.
/* Set up the control lines when an interrupt happens. */
ioctl (fd, PPWCTLONIRQ, &busy);
/* Now we're ready. */
ioctl (fd, PPWCONTROL, &ready);
/* Wait for an interrupt. */
{
fd_set rfds;
FD_ZERO (&rfds);
FD_SET (fd, &rfds);
if (!select (fd + 1, &rfds, NULL, NULL, NULL))
/* Caught a signal? */
continue;
}
so (!select (fd + 1, &rfds, NULL, NULL, NULL) is true if an int was send ?
and how can i trigger the acc line ? just connect ground with pin 10 ?
norman.
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Tue Feb 26 2002 - 09:45:28 EST