Tracy Nelson on Sun, 29 Nov 1998 10:54:50 -0500 (EST)


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

Re: Programming CTS/RTS on serial ports directly


I think you'll have to find some docs on your specific hardware.  You'll
probably have to find the addresses of the hardware control registers for
your serial port (not to mention their format/layout) and write your own
interrupt handler.  I've done this on dedicated hardware, never in a
multi-tasking environment.  Still, it should just be a matter of writing a
new serial driver for your hardware that knows what you're trying to do with
the control lines.  (Things are always simple for those who don't have to do
them...)

Cheers!
-- Tracy Nelson

Ben Dugan wrote:
>I'm trying to use the CTS/RTS signals to control external hardware
>(but not as handshaking lines in the usual sense).
>
>Since they weren't intended to be used that way, I'm getting the
>feeling there's no way to directly interface with them through the GNU
>C library.  In any case, I haven't been able to find references to
>CTS/RTS, except for ways to enable CTS/RTS handshaking.  That
>handshaking is then handled at a lower level, but I can't see how I
>can get at the signals themselves.