Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Controlling external hardware via lpt0

0 views
Skip to first unread message

f...@radio-do.de

unread,
Aug 3, 2004, 12:52:02 PM8/3/04
to

Am 3. Aug 2004 um 18:04 schrieb Fernando Gleiser:

> Is there anything I'm missing? Are there a "programming and using the
> parallel port in FreeBSD" guide?
>
You should try the ppi(4) driver. See the EXAMPLE section of the man=20
page for details how to send single bytes to the port.

Gru=DF
Frank
--=20
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

li...@rachinsky.de

unread,
Aug 3, 2004, 12:52:53 PM8/3/04
to
* Fernando Gleiser <fgle...@cactus.fi.uba.ar> [2004-08-03 13:04 -0300]:
> I need to control some external hardware with a small program in
> FreeBSD. I thought about using the 8 data bits of the parallel port
> for sending the control bits to the hardware.
> The hardware is a very simple combinational logic, triggered by level,
> I don't need any flow control or such.
>
> The soft opens /dev/lpt0 and then writes whatever value is needed (i.e,
> if I need the 2 lsb to be high and the rest low, I write 0x3)

Wouldn't ppi(4) fit your needs better?

Nicolas

0 new messages