diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-02 17:58:44 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-02 17:58:44 +0200 |
commit | 3dfc0b6d951ffce1657167e56feb5609dd3ef167 (patch) | |
tree | c68f9113962ebc5bc0203f743e4167e9f85066bb /nuttx/include | |
parent | 51dfcaa2147d375b9a66c50fd8db8c6f5e6133e4 (diff) | |
download | px4-nuttx-3dfc0b6d951ffce1657167e56feb5609dd3ef167.tar.gz px4-nuttx-3dfc0b6d951ffce1657167e56feb5609dd3ef167.tar.bz2 px4-nuttx-3dfc0b6d951ffce1657167e56feb5609dd3ef167.zip |
Hardware flow control bits
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/serial/serial.h | 12 | ||||
-rw-r--r-- | nuttx/include/termios.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/serial/serial.h b/nuttx/include/nuttx/serial/serial.h index 57bcf1f27..4ee2005ef 100644 --- a/nuttx/include/nuttx/serial/serial.h +++ b/nuttx/include/nuttx/serial/serial.h @@ -46,6 +46,9 @@ #include <stdint.h> #include <stdbool.h> #include <semaphore.h> +#ifdef CONFIG_SERIAL_TERMIOS +# include <termios.h> +#endif #include <nuttx/fs/fs.h> @@ -217,6 +220,15 @@ struct uart_dev_s #ifndef CONFIG_DISABLE_POLL struct pollfd *fds[CONFIG_SERIAL_NPOLLWAITERS]; #endif + + /* Terminal control flags */ + +#ifdef CONFIG_SERIAL_TERMIOS + tcflag_t tc_iflag; /* Input modes */ + tcflag_t tc_oflag; /* Output modes */ + tcflag_t tc_lflag; /* Local modes */ +#endif + }; typedef struct uart_dev_s uart_dev_t; diff --git a/nuttx/include/termios.h b/nuttx/include/termios.h index 2e1c38fc2..95b20a3d3 100644 --- a/nuttx/include/termios.h +++ b/nuttx/include/termios.h @@ -109,6 +109,9 @@ #define PARODD (1 << 5) /* Bit 5: Odd parity, else even */ #define HUPCL (1 << 6) /* Bit 6: Hang up on last close */ #define CLOCAL (1 << 7) /* Bit 7: Ignore modem status lines */ +#define CCTS_OFLOW (1 << 8) /* Bit 8: CTS flow control of output */ +#define CRTSCTS CCTS_OFLOW +#define CRTS_IFLOW (1 << 9) /* Bit 9: RTS flow control of input */ /* Local Modes (c_lflag in the termios structure) */ |