File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
55
self . chan
56
56
. eic
57
57
. evctrl ( )
58
- . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | 1 << P :: ChId :: ID ) } ) ;
58
+ . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | ( 1 << P :: ChId :: ID ) ) } ) ;
59
59
}
60
60
61
61
pub fn enable_interrupt ( & mut self ) {
69
69
self . chan
70
70
. eic
71
71
. wakeup ( )
72
- . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | 1 << P :: ChId :: ID ) } )
72
+ . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | ( 1 << P :: ChId :: ID ) ) } )
73
73
}
74
74
75
75
pub fn disable_interrupt ( & mut self ) {
Original file line number Diff line number Diff line change @@ -543,5 +543,5 @@ fn encode_write_address(addr_7_bits: u8) -> u16 {
543
543
}
544
544
545
545
fn encode_read_address ( addr_7_bits : u8 ) -> u16 {
546
- ( addr_7_bits as u16 ) << 1 | 1
546
+ ( ( addr_7_bits as u16 ) << 1 ) | 1
547
547
}
You can’t perform that action at this time.
0 commit comments