Re: Help:Serial / Parallel Port Control Under Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008-10-08, johnny <johnny@xxxxxxxxxxxxxxx> 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


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux