public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Some devices take undesired actions when RTS and
@ 2019-09-25 7:03 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2019-09-25 7:03 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=17baf5e3909ecc0a25fec7a06637d5347f509cde
commit 17baf5e3909ecc0a25fec7a06637d5347f509cde
Author: shurd <shurd@FreeBSD.org>
Date: Wed Jun 12 18:07:04 2019 +0000
Some devices take undesired actions when RTS and
DTR are asserted. Some development boards for example will reset on DTR,
and some radio interfaces will transmit on RTS.
This patch allows "stty -f /dev/ttyu9.init -rtsdtr" to prevent
RTS and DTR from being asserted on open(), allowing these devices
to be used without problems.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D20031
Diff:
---
newlib/libc/sys/rtems/include/sys/_termios.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/newlib/libc/sys/rtems/include/sys/_termios.h b/newlib/libc/sys/rtems/include/sys/_termios.h
index 38b52bf..c539f88 100644
--- a/newlib/libc/sys/rtems/include/sys/_termios.h
+++ b/newlib/libc/sys/rtems/include/sys/_termios.h
@@ -29,7 +29,7 @@
* SUCH DAMAGE.
*
* @(#)termios.h 8.3 (Berkeley) 3/28/94
- * $FreeBSD: head/sys/sys/_termios.h 326023 2017-11-20 19:43:44Z pfg $
+ * $FreeBSD: head/sys/sys/_termios.h 348999 2019-06-12 18:07:04Z shurd $
*/
#ifndef _SYS__TERMIOS_H_
@@ -143,6 +143,7 @@
#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */
#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */
#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */
+#define CNO_RTSDTR 0x00200000 /* Do not assert RTS or DTR automatically */
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-25 7:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 7:03 [newlib-cygwin] Some devices take undesired actions when RTS and Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).