From: Grant Edwards <grante@visi.com>
To: linux-serial@vger.kernel.org
Subject: Re: Help:Serial / Parallel Port Control Under Linux
Date: Wed, 8 Oct 2008 10:05:02 +0000 (UTC) [thread overview]
Message-ID: <gci0ke$a64$1@ger.gmane.org> (raw)
In-Reply-To: C524BFB0588A46AFA3D2DCEF28D7FB4B@johnny
On 2008-10-08, johnny <johnny@pan-tone.com.sg> wrote:
> If I want to run this small program continuously and detect
> the changes of the input pins all the time, can I simply use
> an infinite loop to do that?
Yes. Though you may want to sleep a little between polls to
allow other things to run. Unfortunately, there are no "block
until modem status change" semantics in the Unix tty driver
(one of a number of useful things that the Unix tty driver is
missing).
> Does it anything wrong to the serial port?
No.
--
Grant
prev parent reply other threads:[~2008-10-08 10:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-03 5:10 Help:Serial / Parallel Port Control Under Linux johnny
2008-10-03 14:26 ` Grant Edwards
2008-10-06 8:54 ` johnny
2008-10-06 9:12 ` Andreas Stricker
2008-10-08 4:01 ` johnny
2008-10-08 10:05 ` Grant Edwards [this message]
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='gci0ke$a64$1@ger.gmane.org' \
--to=grante@visi.com \
--cc=linux-serial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.