From 0343e5d8abadca622a89af3acc9f624b94beb37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 4 Feb 2021 16:51:34 +0100 Subject: [PATCH] pounder timer is u16 --- src/hardware/configuration.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/hardware/configuration.rs b/src/hardware/configuration.rs index fe36f08..d7a07ed 100644 --- a/src/hardware/configuration.rs +++ b/src/hardware/configuration.rs @@ -1,9 +1,6 @@ ///! Stabilizer hardware configuration ///! ///! This file contains all of the hardware-specific configuration of Stabilizer. -#[cfg(feature = "pounder_v1_1")] -use core::convert::TryInto; - use smoltcp::{iface::Routes, wire::Ipv4Address}; use stm32h7xx_hal::{ @@ -763,9 +760,9 @@ pub fn setup( timestamp_timer.set_external_clock(timers::Prescaler::Div4); timestamp_timer.start(); - // Set the timer to wrap at the u32 boundary to meet the PLL periodicity. + // Set the timer to wrap at the u16 boundary to meet the PLL periodicity. // Scale and wrap before or after the PLL. - timestamp_timer.set_period_ticks(u32::MAX); + timestamp_timer.set_period_ticks(u16::MAX); let tim8_channels = timestamp_timer.channels(); pounder::timestamp::Timestamper::new(