Skip to content

Commit bfdca46

Browse files
Erwan Le Rayfourmone
authored andcommitted
include: uapi: serial: add support of rts delays in nanoseconds
Add support of rs485 delay in nanoseconds. With fast data rates (1Mbaut or more), 1ms become quite long. Users need to be able to set shorter delays than 1 ms in order not to slow down the channel unnecessarily. This enables faster communication channels without changing the baudrate. Signed-off-by: Erwan Le Ray <erwan.leray@st.com> Change-Id: I5ec757517be3da22e08df4cc622d08cb28544862
1 parent e8bd1ba commit bfdca46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/serial.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ struct serial_rs485 {
128128
(if supported) */
129129
__u32 delay_rts_before_send; /* Delay before send (milliseconds) */
130130
__u32 delay_rts_after_send; /* Delay after send (milliseconds) */
131+
__u32 delay_rts_before_send_ns; /* Delay (nanoseconds) */
132+
__u32 delay_rts_after_send_ns; /* Delay (nanoseconds) */
131133
__u32 padding[5]; /* Memory is cheap, new structs
132134
are a royal PITA .. */
133135
};

0 commit comments

Comments
 (0)