File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1391,6 +1391,7 @@ where
1391
1391
// Check if there is a request pending to abort
1392
1392
if self . has_pending_frame ( idx) {
1393
1393
let idx: u8 = idx. into ( ) ;
1394
+ let idx = 1u8 << idx;
1394
1395
1395
1396
// Abort Request
1396
1397
can. txbcr . write ( |w| unsafe { w. cr ( ) . bits ( idx) } ) ;
@@ -1411,6 +1412,7 @@ where
1411
1412
fn has_pending_frame ( & self , idx : Mailbox ) -> bool {
1412
1413
let can = self . registers ( ) ;
1413
1414
let idx: u8 = idx. into ( ) ;
1415
+ let idx = 1u8 << idx;
1414
1416
1415
1417
can. txbrp . read ( ) . trp ( ) . bits ( ) & idx != 0
1416
1418
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl StandardFilter {
37
37
filter : 0x0 ,
38
38
mask : 0x0 ,
39
39
} ,
40
- action : Action :: StoreInFifo0 ,
40
+ action : Action :: StoreInFifo1 ,
41
41
}
42
42
}
43
43
@@ -80,7 +80,7 @@ impl ExtendedFilter {
80
80
filter : 0x0 ,
81
81
mask : 0x0 ,
82
82
} ,
83
- action : Action :: StoreInFifo0 ,
83
+ action : Action :: StoreInFifo1 ,
84
84
}
85
85
}
86
86
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ impl<'a> ID_W<'a> {
127
127
#[ inline( always) ]
128
128
#[ allow( dead_code) ]
129
129
pub unsafe fn bits ( self , value : u32 ) -> & ' a mut W {
130
- self . w . bits [ 0 ] = ( self . w . bits [ 0 ] & !( 0x0FFFFFFF ) ) | ( ( value as u32 ) & 0x0FFFFFFF ) ;
130
+ self . w . bits [ 0 ] = ( self . w . bits [ 0 ] & !( 0x1FFFFFFF ) ) | ( ( value as u32 ) & 0x1FFFFFFF ) ;
131
131
self . w
132
132
}
133
133
}
You can’t perform that action at this time.
0 commit comments