From e1c87c149f4ed3b76eba343703d5d3879cafb3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 2 Feb 2021 13:25:45 +0100 Subject: [PATCH] timestamping_timer: also reset counter --- src/hardware/configuration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/configuration.rs b/src/hardware/configuration.rs index 0b3e2fc..aa0b918 100644 --- a/src/hardware/configuration.rs +++ b/src/hardware/configuration.rs @@ -211,6 +211,7 @@ pub fn setup( // Configure the timer to count at the designed tick rate. We will manually set the // period below. timer5.pause(); + timer5.reset_counter(); timer5.set_tick_freq(design_parameters::TIMER_FREQUENCY); // The timestamp timer must run at exactly a multiple of the sample timer based on the