From: Alan Cox Date: Wed, 3 Oct 2018 13:35:53 +0000 (+0100) Subject: trs80m1: update for tty termios masks X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=62198df73c77a9ea2647abb352ef40325f8508d0;p=FUZIX.git trs80m1: update for tty termios masks --- diff --git a/Kernel/platform-trs80m1/devtty.c b/Kernel/platform-trs80m1/devtty.c index 2683dd51..80a290fb 100644 --- a/Kernel/platform-trs80m1/devtty.c +++ b/Kernel/platform-trs80m1/devtty.c @@ -55,6 +55,32 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ static uint8_t trs_flow; /* RTS/CTS */ +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +static tcflag_t uart0_mask[4] = { + _ISYS, + _OSYS, + _CSYS|CBAUD|CSIZE|CRTSCTS|CSTOPB, + _LSYS +}; + +static tcflag_t uart1_mask[4] = { + _ISYS, + _OSYS, + _CSYS|CSIZE|CRTSCTS|CSTOPB, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask +}; + /* Write to system console */ void kputchar(char c) {