timestamping_timer: also reset counter

This commit is contained in:
Robert Jördens 2021-02-02 13:25:45 +01:00
parent 854ed29b1a
commit e1c87c149f
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ pub fn setup(
// Configure the timer to count at the designed tick rate. We will manually set the // Configure the timer to count at the designed tick rate. We will manually set the
// period below. // period below.
timer5.pause(); timer5.pause();
timer5.reset_counter();
timer5.set_tick_freq(design_parameters::TIMER_FREQUENCY); timer5.set_tick_freq(design_parameters::TIMER_FREQUENCY);
// The timestamp timer must run at exactly a multiple of the sample timer based on the // The timestamp timer must run at exactly a multiple of the sample timer based on the