File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11
11
#ifndef _UAPI_LINUX_SERIAL_H
12
12
#define _UAPI_LINUX_SERIAL_H
13
13
14
+ #include <linux/const.h>
14
15
#include <linux/types.h>
15
16
16
17
#include <linux/tty_flags.h>
@@ -140,14 +141,14 @@ struct serial_icounter_struct {
140
141
*/
141
142
struct serial_rs485 {
142
143
__u32 flags ;
143
- #define SER_RS485_ENABLED (1 << 0)
144
- #define SER_RS485_RTS_ON_SEND (1 << 1)
145
- #define SER_RS485_RTS_AFTER_SEND (1 << 2)
146
- #define SER_RS485_RX_DURING_TX (1 << 4 )
147
- #define SER_RS485_TERMINATE_BUS (1 << 5 )
148
- #define SER_RS485_ADDRB (1 << 6 )
149
- #define SER_RS485_ADDR_RECV (1 << 7 )
150
- #define SER_RS485_ADDR_DEST (1 << 8 )
144
+ #define SER_RS485_ENABLED _BITUL( 0)
145
+ #define SER_RS485_RTS_ON_SEND _BITUL( 1)
146
+ #define SER_RS485_RTS_AFTER_SEND _BITUL( 2)
147
+ #define SER_RS485_RX_DURING_TX _BITUL(3 )
148
+ #define SER_RS485_TERMINATE_BUS _BITUL(4 )
149
+ #define SER_RS485_ADDRB _BITUL(5 )
150
+ #define SER_RS485_ADDR_RECV _BITUL(6 )
151
+ #define SER_RS485_ADDR_DEST _BITUL(7 )
151
152
152
153
__u32 delay_rts_before_send ;
153
154
__u32 delay_rts_after_send ;
You can’t perform that action at this time.
0 commit comments