From owner-freebsd-questions Wed Dec 8 7:42:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.netvision.net.il (alpha.netvision.net.il [194.90.1.13]) by hub.freebsd.org (Postfix) with ESMTP id 2029815172; Wed, 8 Dec 1999 07:42:34 -0800 (PST) (envelope-from danhil@cwnt.com) Received: from unspecified.host (ras3-p201.hfa.netvision.net.il [62.0.147.201]) by alpha.netvision.net.il (8.9.3/8.8.6) with SMTP id RAA00283; Wed, 8 Dec 1999 17:42:29 +0200 (IST) Received: from 192.168.0.46 ([192.168.0.46]) by 192.168.0.1 (WinRoute 3.04g) with SMTP; Wed, 8 Dec 1999 17:40:15 +0200 Message-ID: <060901bf4192$926e8350$2e00a8c0@cwnt.co.il> From: "Daniel Hilevich" To: , Subject: Use of the ppi interface Date: Wed, 8 Dec 1999 17:40:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0606_01BF41A3.55F138D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0606_01BF41A3.55F138D0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Hi, I'm using the parallel port to control some sort of a hardware (i2c). = For that I generate pulses using the ppi device (geek port). The problem = is that in some cases, the pulse isn't generated. What I do is sending = an ioctl to make the device high (1) and another ioctl to set the device = low (0). It seems that in some cases, the two commands arrive together = to the device so the pulse isn't wide enough. Does the ppbus layer stores the ioctl's in some sort of a buffer and = than flushes its content to the hardware? If so, is there a way to control it? The pulses should be in fixed size, so any other idea will be welcomed. Thanx,=20 --- Daniel Hilevich mailto:danhil@cwnt.com=20 Tel: +972-4-9592203 ext. 214 Charlotte's Web Networks LTD.=20 http://www.cwnt.com ------=_NextPart_000_0606_01BF41A3.55F138D0 Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable
Hi,
I'm using the parallel port = to control=20 some sort of a hardware (i2c). For that I generate pulses using the ppi = device=20 (geek port). The problem is that in some cases, the pulse isn't=20 generated. What I do is sending an ioctl to make the device high = (1) and=20 another ioctl to set the device low (0). It seems that in some cases, = the two=20 commands arrive together to the device so the pulse isn't wide=20 enough.
Does the ppbus layer stores = the ioctl's=20 in some sort of a buffer and than flushes its content to the=20 hardware?
If so, is there a way to = control=20 it?
The=20 pulses should be in fixed size, so any other idea will be=20 welcomed.
Thanx, 
---
Daniel Hilevich mailto:danhil@cwnt.com
Tel:=20 +972-4-9592203  ext. 214
Charlotte's Web Networks LTD.
http://www.cwnt.com
------=_NextPart_000_0606_01BF41A3.55F138D0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message