File tree 5 files changed +6
-33
lines changed
5 files changed +6
-33
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ edition = "2018"
23
23
[dependencies ]
24
24
cortex-m = " 0.7"
25
25
nb = " 0.1.1"
26
- stm32l4 = " 0.14.0 "
26
+ stm32l4 = " 0.15.1 "
27
27
embedded-dma = " 0.1"
28
28
bxcan = " >=0.4, <0.7"
29
29
fugit = " 0.3.5"
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ macro_rules! pwm_channels {
370
370
371
371
#[ inline( always) ]
372
372
fn get_duty( & self ) -> Self :: Duty {
373
- unsafe { ( * $TIMX:: ptr( ) ) . $ccrX. read( ) . $ccr( ) . bits( ) }
373
+ unsafe { ( * $TIMX:: ptr( ) ) . $ccrX( ) . read( ) . $ccr( ) . bits( ) }
374
374
}
375
375
376
376
#[ inline( always) ]
@@ -380,7 +380,7 @@ macro_rules! pwm_channels {
380
380
381
381
#[ inline( always) ]
382
382
fn set_duty( & mut self , duty: Self :: Duty ) {
383
- unsafe { ( * $TIMX:: ptr( ) ) . $ccrX. write( |w| w. $ccr( ) . bits( duty) ) }
383
+ unsafe { ( * $TIMX:: ptr( ) ) . $ccrX( ) . write( |w| w. $ccr( ) . bits( duty) ) }
384
384
}
385
385
}
386
386
) +
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ impl Rtc {
271
271
rtc_registers:: clear_alarm_a_flag ( rtc) ;
272
272
while !rtc_registers:: is_alarm_a_accessible ( rtc) { }
273
273
274
- rtc. alrmar . modify ( |_, w| unsafe {
274
+ rtc. alrmar ( ) . modify ( |_, w| unsafe {
275
275
w. dt ( )
276
276
. bits ( dt)
277
277
. du ( )
@@ -307,7 +307,7 @@ impl Rtc {
307
307
rtc_registers:: clear_alarm_b_flag ( rtc) ;
308
308
while !rtc_registers:: is_alarm_b_accessible ( rtc) { }
309
309
310
- rtc. alrmbr . modify ( |_, w| unsafe {
310
+ rtc. alrmbr ( ) . modify ( |_, w| unsafe {
311
311
w. dt ( )
312
312
. bits ( dt)
313
313
. du ( )
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ impl<SPIN> Tsc<SPIN> {
267
267
/// Reads the tsc group 2 count register
268
268
/// WARNING, just returns the contents of the register! No validation of the correct pin
269
269
pub fn read_unchecked ( & self ) -> u16 {
270
- self . tsc . iog2cr . read ( ) . cnt ( ) . bits ( )
270
+ self . tsc . iog2cr ( ) . read ( ) . cnt ( ) . bits ( )
271
271
}
272
272
273
273
/// Is the tsc performing an aquisition
Original file line number Diff line number Diff line change @@ -27,34 +27,7 @@ impl IndependentWatchdog {
27
27
28
28
/// Debug independent watchdog stopped when core is halted
29
29
pub fn stop_on_debug ( & self , dbgmcu : & DBGMCU , stop : bool ) {
30
- #[ cfg( any(
31
- feature = "stm32l431" ,
32
- feature = "stm32l451" ,
33
- feature = "stm32l471" ,
34
- feature = "stm32l412" ,
35
- feature = "stm32l422" ,
36
- feature = "stm32l432" ,
37
- feature = "stm32l442" ,
38
- feature = "stm32l452" ,
39
- feature = "stm32l462" ,
40
- feature = "stm32l433" ,
41
- feature = "stm32l443" ,
42
- ) ) ]
43
30
dbgmcu. apb1fzr1 . modify ( |_, w| w. dbg_iwdg_stop ( ) . bit ( stop) ) ;
44
- #[ cfg( not( any(
45
- feature = "stm32l431" ,
46
- feature = "stm32l451" ,
47
- feature = "stm32l471" ,
48
- feature = "stm32l412" ,
49
- feature = "stm32l422" ,
50
- feature = "stm32l432" ,
51
- feature = "stm32l442" ,
52
- feature = "stm32l452" ,
53
- feature = "stm32l462" ,
54
- feature = "stm32l433" ,
55
- feature = "stm32l443" ,
56
- ) ) ) ]
57
- dbgmcu. apb1_fzr1 . modify ( |_, w| w. dbg_iwdg_stop ( ) . bit ( stop) ) ;
58
31
}
59
32
60
33
/// Sets the watchdog timer timout period. Max: 32768 ms
You can’t perform that action at this time.
0 commit comments