diff options
author | shurd <shurd@FreeBSD.org> | 2019-06-12 18:07:04 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-09-25 09:01:07 +0200 |
commit | 17baf5e3909ecc0a25fec7a06637d5347f509cde (patch) | |
tree | 092c19125de08f3a0e2f160d5b01db7d3535aa1b /newlib/libc/sys | |
parent | 6bd0b9ed277e8025ca29bf265d419566ceb643b2 (diff) | |
download | newlib-17baf5e3909ecc0a25fec7a06637d5347f509cde.zip newlib-17baf5e3909ecc0a25fec7a06637d5347f509cde.tar.gz newlib-17baf5e3909ecc0a25fec7a06637d5347f509cde.tar.bz2 |
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
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/_termios.h | 3 |
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 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 |