File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
37
37
38
38
### Fixed
39
39
- Stability fixes related to SD card write
40
+ - Fixed issue where timer generated a spurious interrupt after start
40
41
41
42
## [ v0.8.3] - 2020-06-12
42
43
Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ macro_rules! hal {
263
263
let arr = u16 ( ticks / u32 ( psc + 1 ) ) . unwrap( ) ;
264
264
self . tim. arr. write( |w| unsafe { w. bits( u32 ( arr) ) } ) ;
265
265
266
+ // Trigger update event to load the registers
267
+ self . tim. cr1. modify( |_, w| w. urs( ) . set_bit( ) ) ;
268
+ self . tim. egr. write( |w| w. ug( ) . set_bit( ) ) ;
269
+ self . tim. cr1. modify( |_, w| w. urs( ) . clear_bit( ) ) ;
270
+
266
271
// start counter
267
272
self . tim. cr1. modify( |_, w| w. cen( ) . set_bit( ) ) ;
268
273
}
You can’t perform that action at this time.
0 commit comments