Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 18:49:35 +0200
From:      Nicolas Rachinsky <list@rachinsky.de>
To:        Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
Cc:        hackers@freebsd.org
Subject:   Re: Controlling external hardware via lpt0
Message-ID:  <20040803164935.GA95472@pc5.i.0x5.de>
In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar>
References:  <20040803125019.O1361@cactus.fi.uba.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
* Fernando Gleiser <fgleiser@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040803164935.GA95472>