From: "Christopher Friesen" <cfriesen@nortelnetworks.com>
To: unlisted-recipients:; (no To-header on input)@localhost.localdomain
Cc: linux-kernel@vger.kernel.org
Subject: Re: Treating parallel port as serial device
Date: Tue, 28 Aug 2001 16:38:50 -0400 [thread overview]
Message-ID: <3B8C015A.88C1103C@nortelnetworks.com> (raw)
In-Reply-To: <9mgtpb$mf4$1@sisko.my.home>
Tony Hoyle wrote:
> What I need now is a driver that can read the input from a pin on the
> parallel port and treat it as serial input. It sounds like the kind of
> project that would have been done before, but I can't find anything that
> even comes close. Userspace probably wouldn't cut it as I'm reading as
> 9600 baud and usleep doesn't have nearly enough resolution.
Unless you need to drive this based on interrupts or you need to do other stuff
at the same time, you can use either SCHED_FIFO or SCHED_RR and nanosleep() from
userspace.
According to the man page, nanosleep() will busywait for pauses under 2ms if you
use one of the two realtime schedulers.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
next prev parent reply other threads:[~2001-08-28 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-28 20:09 Treating parallel port as serial device Tony Hoyle
2001-08-28 20:15 ` Philip Blundell
2001-08-28 20:38 ` Christopher Friesen [this message]
2001-08-28 20:52 ` Jean-Christian de Rivaz
2001-08-28 21:55 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B8C015A.88C1103C@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox