On Tuesday 13 May 2003 03:42 am, Tim Waugh wrote:
> On Tue, May 13, 2003 at 12:20:42AM -0700, Jason Majors wrote:
> > I want the software to be able to use a blocking call like select()
> > that'll just sit and wait for the parallel port to change (in its own
> > thread).
>
> If you connect to the right pin (nAck), you'll get an interrupt, and
> so you can literally use select() on the file descriptor you get from
> ieee1284_get_irq_fd() (from libieee1284), or just the file descriptor
> associated with the ppdev device.
And I can say this works great.
My initial problem with this was due to the fact I had a kernel without
CONFIG_PARPORT_PC_FIFO=y and CONFIG_PARPORT_PC_SUPERIO=y
in the kernel .config
-- Bob Tanner <tanner@real-time.com> | Phone : (952)943-8700 http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288-- 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 May 13 2003 - 13:44:52 EDT