From ddfefa0ee832cce107de4201844282e6109ed7b6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 25 May 2021 17:27:09 +0200 Subject: Setup clocks properly --- sw/picardy/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/picardy/src/main.rs b/sw/picardy/src/main.rs index 3a2e500..d354fbc 100644 --- a/sw/picardy/src/main.rs +++ b/sw/picardy/src/main.rs @@ -97,7 +97,9 @@ fn main() -> ! { let mut rcc = dp.RCC.constrain(); let mut afio = dp.AFIO.constrain(&mut rcc.apb2); let clocks = rcc.cfgr - // TODO .use_hse(8.mhz()) + .use_hse(16.mhz()) + .sysclk(48.mhz()) + .pclk1(24.mhz()) .adcclk(2.mhz()) .freeze(&mut flash.acr); let mut delay = Delay::new(cp.SYST, clocks); -- cgit v1.2.3