From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:49:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6994D16A4CE for ; Tue, 3 Aug 2004 16:49:45 +0000 (GMT) Received: from pc5.i.0x5.de (n.0x5.de [213.146.113.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF41C43D58 for ; Tue, 3 Aug 2004 16:49:43 +0000 (GMT) (envelope-from nicolas@i.0x5.de) Received: from pc5.i.0x5.de (nicolas@localhost [127.0.0.1]) by pc5.i.0x5.de (8.12.11/8.12.11) with ESMTP id i73GnZY9095587; Tue, 3 Aug 2004 18:49:35 +0200 (CEST) (envelope-from nicolas@pc5.i.0x5.de) Received: (from nicolas@localhost) by pc5.i.0x5.de (8.12.11/8.12.11/Submit) id i73GnZqk095586; Tue, 3 Aug 2004 18:49:35 +0200 (CEST) (envelope-from nicolas) Date: Tue, 3 Aug 2004 18:49:35 +0200 From: Nicolas Rachinsky To: Fernando Gleiser Message-ID: <20040803164935.GA95472@pc5.i.0x5.de> Mail-Followup-To: Fernando Gleiser , hackers@freebsd.org References: <20040803125019.O1361@cactus.fi.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:49:45 -0000 * Fernando Gleiser [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