From eac7c8232fb7449425ddcb43403cbd08ecaecf7e Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 14 Mar 2019 18:11:07 +0100 Subject: [PATCH] main: revise clock rates systick seemed to be running too slow --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 780d02e..a705107 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,10 +39,10 @@ fn main() -> ! { stm32_eth::setup(&dp.RCC, &dp.SYSCFG); let _clocks = dp.RCC.constrain() .cfgr - .sysclk(168.mhz()) + .sysclk(84.mhz()) .hclk(84.mhz()) - .pclk1(32.mhz()) - .pclk2(64.mhz()) + .pclk1(16.mhz()) + .pclk2(32.mhz()) .freeze(); let mut wd = IndependentWatchdog::new(dp.IWDG);