Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshurd <shurd@FreeBSD.org>2019-06-12 21:07:04 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-09-25 10:01:07 +0300
commit17baf5e3909ecc0a25fec7a06637d5347f509cde (patch)
tree092c19125de08f3a0e2f160d5b01db7d3535aa1b
parent6bd0b9ed277e8025ca29bf265d419566ceb643b2 (diff)
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
-rw-r--r--newlib/libc/sys/rtems/include/sys/_termios.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/_termios.h b/newlib/libc/sys/rtems/include/sys/_termios.h
index 38b52bf0e..c539f88f1 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