From 67b7dbcb70dde500432a8e9c8b4a7fc1f3f111e4 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Thu, 11 Jun 2020 15:03:08 +0200 Subject: [PATCH] Updating back to 500khz sampling --- stabilizer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stabilizer/src/main.rs b/stabilizer/src/main.rs index 452e2da..510c2a9 100644 --- a/stabilizer/src/main.rs +++ b/stabilizer/src/main.rs @@ -508,7 +508,7 @@ const APP: () = { hal::dma::DMAREQ_ID::TIM2_CH2); // Configure timer 2 to trigger conversions for the ADC - let mut timer2 = dp.TIM2.timer(50.khz(), &mut clocks); + let mut timer2 = dp.TIM2.timer(500.khz(), &mut clocks); timer2.configure_channel(hal::timer::Channel::One, 0.25); timer2.configure_channel(hal::timer::Channel::Two, 0.75);