summaryrefslogtreecommitdiffstats
path: root/cpukit/include/dev/serial
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-14 07:35:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-14 07:35:21 +0200
commit6ff1da40c7688a880920c3f4b0f1d530775c315c (patch)
tree37f2f046bbba7779101efcfc72d75089214715be /cpukit/include/dev/serial
parentbsp/atsam: Do not disable the WDT (diff)
downloadrtems-6ff1da40c7688a880920c3f4b0f1d530775c315c.tar.bz2
dev/sc16is752: Add RS485 mode variants
Diffstat (limited to 'cpukit/include/dev/serial')
-rw-r--r--cpukit/include/dev/serial/sc16is752.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpukit/include/dev/serial/sc16is752.h b/cpukit/include/dev/serial/sc16is752.h
index 67c2e009bc..ea8ba7056b 100644
--- a/cpukit/include/dev/serial/sc16is752.h
+++ b/cpukit/include/dev/serial/sc16is752.h
@@ -31,7 +31,18 @@ extern "C" {
typedef enum {
SC16IS752_MODE_RS232,
- SC16IS752_MODE_RS485
+
+ /* Enable RS485 mode */
+ SC16IS752_MODE_RS485,
+
+ /* Enable RS485 mode, enable the transmitter to control the #RTS pin */
+ SC16IS752_MODE_RS485_RTS,
+
+ /*
+ * Enable RS485 mode, enable the transmitter to control the #RTS pin, invert
+ * RTS signal (#RTS = 1 during transmission and #RTS = 0 during reception)
+ */
+ SC16IS752_MODE_RS485_RTS_INV
} sc16is752_mode;
typedef struct sc16is752_context sc16is752_context;