Skip to content
Snippets Groups Projects
Commit 82f0a9f7 authored by Carl Österberg's avatar Carl Österberg
Browse files

bare6_1

parent 6ebcbf6b
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,8 @@ const APP: () = { ...@@ -55,7 +55,8 @@ const APP: () = {
let rcc = device.RCC.constrain(); let rcc = device.RCC.constrain();
//let _clocks = rcc.cfgr.freeze(); let _clocks = rcc.cfgr.freeze();
//rprintln!("mhz: {:?}", _clocks.sysclk());
//Set up the system clock. 48 MHz? //Set up the system clock. 48 MHz?
// let _clocks = rcc // let _clocks = rcc
...@@ -64,12 +65,12 @@ const APP: () = { ...@@ -64,12 +65,12 @@ const APP: () = {
// .pclk1(24.mhz()) // .pclk1(24.mhz())
// .freeze(); // .freeze();
let _clocks = rcc // let _clocks = rcc
.cfgr // .cfgr
.sysclk(64.mhz()) // .sysclk(64.mhz())
.pclk1(64.mhz()) // .pclk1(64.mhz())
.pclk2(64.mhz()) // .pclk2(64.mhz())
.freeze(); // .freeze();
// //
// let _clocks = rcc // let _clocks = rcc
// .cfgr // .cfgr
...@@ -243,14 +244,17 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { ...@@ -243,14 +244,17 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) {
// What is the (default) MCU (SYSCLK) frequency? // What is the (default) MCU (SYSCLK) frequency?
// //
// ** your answer here ** // ** your answer here **
// 16 MHz
// //
// What is the (default) DWT CYCCNT frequency? // What is the (default) DWT CYCCNT frequency?
// //
// ** your answer here ** // ** your answer here **
// 16 MHz
// //
// What is the frequency of blinking? // What is the frequency of blinking?
// //
// ** your answer here ** // ** your answer here **
// 8/16 = 0.5 which means we do one turn off and on per second
// //
// Commit your answers (bare6_1) // Commit your answers (bare6_1)
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment