File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ version = "0.0.0"
13
13
14
14
[dependencies ]
15
15
nb = " 0.1.1"
16
- stm32g4 = " 0.14.0 "
16
+ stm32g4 = " 0.15.1 "
17
17
paste = " 1.0"
18
18
bitflags = " 1.2"
19
19
vcell = " 0.1"
Original file line number Diff line number Diff line change @@ -1162,7 +1162,7 @@ where
1162
1162
pub fn error_counters ( & self ) -> ErrorCounters {
1163
1163
let can = self . registers ( ) ;
1164
1164
let cel: u8 = can. ecr . read ( ) . cel ( ) . bits ( ) ;
1165
- let rp: bool = can. ecr . read ( ) . rp ( ) . bits ( ) ;
1165
+ let rp: bool = can. ecr . read ( ) . rp ( ) . bit ( ) ;
1166
1166
let rec: u8 = can. ecr . read ( ) . rec ( ) . bits ( ) ;
1167
1167
let tec: u8 = can. ecr . read ( ) . tec ( ) . bits ( ) ;
1168
1168
Original file line number Diff line number Diff line change @@ -256,8 +256,8 @@ macro_rules! opamps {
256
256
. output( )
257
257
. opaintoen( )
258
258
. variant( match output {
259
- Some ( _) => OPAINTOEN_A :: OUTPUTPIN ,
260
- None => OPAINTOEN_A :: ADCCHANNEL ,
259
+ Some ( _) => OPAINTOEN_A :: OutputPin ,
260
+ None => OPAINTOEN_A :: Adcchannel ,
261
261
} )
262
262
. opaen( )
263
263
. enabled( )
@@ -324,8 +324,8 @@ macro_rules! opamps {
324
324
. $inverting_mask( )
325
325
. opaintoen( )
326
326
. variant( match output {
327
- Some ( _) => OPAINTOEN_A :: OUTPUTPIN ,
328
- None => OPAINTOEN_A :: ADCCHANNEL ,
327
+ Some ( _) => OPAINTOEN_A :: OutputPin ,
328
+ None => OPAINTOEN_A :: Adcchannel ,
329
329
} )
330
330
. opaen( )
331
331
. enabled( )
Original file line number Diff line number Diff line change @@ -1526,7 +1526,7 @@ macro_rules! tim_pin_hal {
1526
1526
1527
1527
// Even though the field is 20 bits long for 16-bit counters, only 16 bits are
1528
1528
// valid, so we convert to the appropriate type.
1529
- tim. $ccrx. read( ) . ccr( ) . bits( ) as $typ
1529
+ tim. $ccrx( ) . read( ) . ccr( ) . bits( ) as $typ
1530
1530
}
1531
1531
1532
1532
fn get_max_duty( & self ) -> Self :: Duty {
@@ -1551,7 +1551,7 @@ macro_rules! tim_pin_hal {
1551
1551
fn set_duty( & mut self , duty: Self :: Duty ) {
1552
1552
let tim = unsafe { & * $TIMX:: ptr( ) } ;
1553
1553
1554
- tim. $ccrx. write( |w| unsafe { w. ccr( ) . bits( duty. into( ) ) } ) ;
1554
+ tim. $ccrx( ) . write( |w| unsafe { w. ccr( ) . bits( duty. into( ) ) } ) ;
1555
1555
}
1556
1556
}
1557
1557
You can’t perform that action at this time.
0 commit comments