aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/serial/serial-rs485.txt
diff options
context:
space:
mode:
authorBernhard Roth <br@pwrnet.de>2011-08-24 03:48:23 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-24 18:27:59 -0400
commit83cac9f3b45ba8e99c5305be42c67f1c83adf0aa (patch)
treeb9b5ec2373ec4e113535cdbe50a09e601fa32ee9 /Documentation/serial/serial-rs485.txt
parent019dc9ea8d528eb3640bbba604e1e5a2f6994b1f (diff)
atmel_serial: RS485: receiving enabled when sending data
By default the atmel_serial driver in RS485 mode disables receiving data until all data in the send buffer has been sent. This flag allows to receive data even whilst sending data. Signed-off-by: Bernhard Roth <br@pwrnet.de> Signed-off-by: Claudio Scordino <claudio@evidence.eu.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/serial/serial-rs485.txt')
-rw-r--r--Documentation/serial/serial-rs485.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/serial/serial-rs485.txt b/Documentation/serial/serial-rs485.txt
index a4932387bbfb..c8878f821d1e 100644
--- a/Documentation/serial/serial-rs485.txt
+++ b/Documentation/serial/serial-rs485.txt
@@ -104,6 +104,9 @@
104 rs485conf.flags |= SER_RS485_RTS_AFTER_SEND; 104 rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
105 rs485conf.delay_rts_after_send = ...; 105 rs485conf.delay_rts_after_send = ...;
106 106
107 /* Set this flag if you want to receive data even whilst sending data */
108 rs485conf.flags |= SER_RS485_RX_DURING_TX;
109
107 if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) { 110 if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) {
108 /* Error handling. See errno. */ 111 /* Error handling. See errno. */
109 } 112 }