File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed 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 @@ -1356,7 +1356,7 @@ where
1356
1356
// Check if there is a request pending to abort
1357
1357
if self . has_pending_frame ( idx) {
1358
1358
let idx: u8 = idx. into ( ) ;
1359
- let idx: u32 = idx as u32 ;
1359
+ let idx: u32 = 1u32 << ( idx as u32 ) ;
1360
1360
1361
1361
// Abort Request
1362
1362
can. txbcr . write ( |w| unsafe { w. cr ( ) . bits ( idx) } ) ;
@@ -1377,7 +1377,7 @@ where
1377
1377
fn has_pending_frame ( & self , idx : Mailbox ) -> bool {
1378
1378
let can = self . registers ( ) ;
1379
1379
let idx: u8 = idx. into ( ) ;
1380
- let idx: u32 = idx as u32 ;
1380
+ let idx: u32 = 1u32 << ( idx as u32 ) ;
1381
1381
1382
1382
can. txbrp . read ( ) . trp ( ) . bits ( ) & idx != 0
1383
1383
}
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl<'a> ID_W<'a> {
137
137
#[ allow( dead_code) ]
138
138
pub unsafe fn bits ( self , value : u32 ) -> & ' a mut W {
139
139
self . w . bits [ 0 ] =
140
- ( self . w . bits [ 0 ] & !( 0x0FFFFFFF ) ) | ( ( value as u32 ) & 0x0FFFFFFF ) ;
140
+ ( self . w . bits [ 0 ] & !( 0x1FFFFFFF ) ) | ( ( value as u32 ) & 0x1FFFFFFF ) ;
141
141
self . w
142
142
}
143
143
}
You can’t perform that action at this time.
0 commit comments