From dc0994ce978ca299d7b06b3814cd7db4493f3b70 Mon Sep 17 00:00:00 2001 From: Josef Utbult <josutb-7@student.ltu.se> Date: Tue, 23 Mar 2021 13:46:12 +0100 Subject: [PATCH] bare6_7 --- examples/rtic_bare6.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/rtic_bare6.rs b/examples/rtic_bare6.rs index 7ce4b69..734e341 100644 --- a/examples/rtic_bare6.rs +++ b/examples/rtic_bare6.rs @@ -58,26 +58,26 @@ const APP: () = { // let _clocks = rcc.cfgr.freeze(); // Set up the system clock. 48 MHz? - let _clocks = rcc - .cfgr - .sysclk(48.mhz()) - .pclk1(24.mhz()) - .freeze(); - // let _clocks = rcc // .cfgr - // .sysclk(64.mhz()) - // .pclk1(64.mhz()) - // .pclk2(64.mhz()) + // .sysclk(48.mhz()) + // .pclk1(24.mhz()) // .freeze(); - + // // let _clocks = rcc // .cfgr - // .sysclk(84.mhz()) - // .pclk1(42.mhz()) + // .sysclk(64.mhz()) + // .pclk1(64.mhz()) // .pclk2(64.mhz()) // .freeze(); + let _clocks = rcc + .cfgr + .sysclk(84.mhz()) + .pclk1(42.mhz()) + .pclk2(64.mhz()) + .freeze(); + // pass on late resources init::LateResources { GPIOA: device.GPIOA, @@ -327,7 +327,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // // What is the peak to peak reading of the signal (and why did it change)? // -// ** your answer here ** +// 4.9V, I have honestly no clue why... // // Make a screen dump or photo of the oscilloscope output. // Save the the picture as "bare_6_48mhz_low_speed". @@ -340,11 +340,11 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // // Does the code compile? // -// ** your answer here ** +// It does // // What happens at run-time? // -// ** your answer here ** +// Nothing hapens during runtime. The led has stopped flashing. // // Try setting the clocks according to: // -- GitLab