File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
14
14
15
15
### Added
16
16
17
- - Extended 64-bit monotonic timer
17
+ - Extended 64-bit monotonic timer [ # 640 ]
18
18
19
19
### Fixed
20
20
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
23
23
[ #632 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/632
24
24
[ #635 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/635
25
25
[ #636 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/636
26
+ [ #640 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/640
26
27
27
28
## [ v0.16.0] - 2023-05-07
28
29
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ where
118
118
119
119
unsafe fn reset ( & mut self ) {
120
120
self . tim . listen_interrupt ( Event :: C1 , true ) ;
121
- TIM :: set_cc_value ( Channel :: C1 as u8 , 0 ) ;
121
+ self . tim . reset_counter ( ) ;
122
122
}
123
123
124
124
#[ inline( always) ]
@@ -216,7 +216,7 @@ where
216
216
Some ( _x) => self . tim . read_count ( ) . wrapping_add ( TIM :: Width :: FOR_WRAP ) , // Will overflow
217
217
} ;
218
218
219
- TIM :: set_cc_value ( 0 , u32:: from ( val) ) ;
219
+ TIM :: set_cc_value ( Channel :: C1 as u8 , u32:: from ( val) ) ;
220
220
}
221
221
222
222
fn clear_compare_flag ( & mut self ) {
You can’t perform that action at this time.
0 commit comments