poll or select for ppi?
Daniel O'Connor
doconnor at gsoft.com.au
Mon Mar 14 19:30:50 PST 2005
On Tue, 15 Mar 2005 13:35, Matt Kory wrote:
> Is it possible to use poll or select to detect a change in the status
> bits of the parallel port? I tried something like this, and took bits
> 5 and 6 of the status register low and nothing seemed to happen. Is
> what I am trying to do even possible, or I am supposed to take a
> certain bit low to cause a read event? Any help is appreciated.
PPI doesn't support select/poll.
I don't think ere is any support for interrupt based notifications.. The only
thing interrupts appear to be used for is for IEE1284 state changes.
ie you're stuck with polling :(
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050315/5862ed24/attachment.bin
More information about the freebsd-hackers
mailing list