From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108431 invoked by alias); 25 Sep 2019 07:03:25 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 108415 invoked by uid 10080); 25 Sep 2019 07:03:25 -0000 Date: Wed, 25 Sep 2019 07:03:00 -0000 Message-ID: <20190925070325.108414.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Some devices take undesired actions when RTS and X-Act-Checkin: newlib-cygwin X-Git-Author: shurd X-Git-Refname: refs/heads/master X-Git-Oldrev: 6bd0b9ed277e8025ca29bf265d419566ceb643b2 X-Git-Newrev: 17baf5e3909ecc0a25fec7a06637d5347f509cde X-SW-Source: 2019-q3/txt/msg00037.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=17baf5e3909ecc0a25fec7a06637d5347f509cde commit 17baf5e3909ecc0a25fec7a06637d5347f509cde Author: shurd 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