Skip to content
Snippets Groups Projects
Commit dc0994ce authored by Josef Utbult's avatar Josef Utbult
Browse files

bare6_7

parent 86e54ab8
No related branches found
No related tags found
No related merge requests found
...@@ -58,26 +58,26 @@ const APP: () = { ...@@ -58,26 +58,26 @@ const APP: () = {
// let _clocks = rcc.cfgr.freeze(); // let _clocks = rcc.cfgr.freeze();
// Set up the system clock. 48 MHz? // Set up the system clock. 48 MHz?
let _clocks = rcc
.cfgr
.sysclk(48.mhz())
.pclk1(24.mhz())
.freeze();
// let _clocks = rcc // let _clocks = rcc
// .cfgr // .cfgr
// .sysclk(64.mhz()) // .sysclk(48.mhz())
// .pclk1(64.mhz()) // .pclk1(24.mhz())
// .pclk2(64.mhz())
// .freeze(); // .freeze();
//
// let _clocks = rcc // let _clocks = rcc
// .cfgr // .cfgr
// .sysclk(84.mhz()) // .sysclk(64.mhz())
// .pclk1(42.mhz()) // .pclk1(64.mhz())
// .pclk2(64.mhz()) // .pclk2(64.mhz())
// .freeze(); // .freeze();
let _clocks = rcc
.cfgr
.sysclk(84.mhz())
.pclk1(42.mhz())
.pclk2(64.mhz())
.freeze();
// pass on late resources // pass on late resources
init::LateResources { init::LateResources {
GPIOA: device.GPIOA, GPIOA: device.GPIOA,
...@@ -327,7 +327,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { ...@@ -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)? // 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. // Make a screen dump or photo of the oscilloscope output.
// Save the the picture as "bare_6_48mhz_low_speed". // Save the the picture as "bare_6_48mhz_low_speed".
...@@ -340,11 +340,11 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { ...@@ -340,11 +340,11 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) {
// //
// Does the code compile? // Does the code compile?
// //
// ** your answer here ** // It does
// //
// What happens at run-time? // What happens at run-time?
// //
// ** your answer here ** // Nothing hapens during runtime. The led has stopped flashing.
// //
// Try setting the clocks according to: // Try setting the clocks according to:
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment