diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-06-14 07:35:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-06-14 07:35:21 +0200 |
commit | 6ff1da40c7688a880920c3f4b0f1d530775c315c (patch) | |
tree | 37f2f046bbba7779101efcfc72d75089214715be /cpukit/include/dev/serial | |
parent | bsp/atsam: Do not disable the WDT (diff) | |
download | rtems-6ff1da40c7688a880920c3f4b0f1d530775c315c.tar.bz2 |
dev/sc16is752: Add RS485 mode variants
Diffstat (limited to 'cpukit/include/dev/serial')
-rw-r--r-- | cpukit/include/dev/serial/sc16is752.h | 13 |
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; |