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/).
3737
3838### Fixed
3939- Stability fixes related to SD card write
40+ - Fixed issue where timer generated a spurious interrupt after start
4041
4142## [ v0.8.3] - 2020-06-12
4243
Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ macro_rules! hal {
263263 let arr = u16 ( ticks / u32 ( psc + 1 ) ) . unwrap( ) ;
264264 self . tim. arr. write( |w| unsafe { w. bits( u32 ( arr) ) } ) ;
265265
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+
266271 // start counter
267272 self . tim. cr1. modify( |_, w| w. cen( ) . set_bit( ) ) ;
268273 }
You can’t perform that action at this time.
0 commit comments