File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
36
36
- use register.modify instead of register.write to start PWM [ #501 ]
37
37
- add missing generic param for Spi::release implementation.
38
38
- build rtic-usb-cdc-echo example [ #554 ]
39
+ - reset timer cnt register when changing pwm period [ #555 ]
39
40
40
41
### Added
41
42
@@ -77,6 +78,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
78
[ #552 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/552
78
79
[ #553 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/553
79
80
[ #554 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/554
81
+ [ #555 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/555
80
82
81
83
## [ v0.13.2] - 2022-05-16
82
84
Original file line number Diff line number Diff line change @@ -445,5 +445,6 @@ where
445
445
446
446
pub fn set_period ( & mut self , period : TimerDurationU32 < FREQ > ) {
447
447
self . tim . set_auto_reload ( period. ticks ( ) - 1 ) . unwrap ( ) ;
448
+ self . tim . cnt_reset ( ) ;
448
449
}
449
450
}
You can’t perform that action at this time.
0 commit comments