From 536e84bd5dd78df0741d597acffb09fd547438a2 Mon Sep 17 00:00:00 2001
From: Ridgep <ridpet-5@student.ltu.se>
Date: Sat, 9 Mar 2019 18:31:32 +0100
Subject: [PATCH] bare6_1

---
 examples/bare6.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/bare6.rs b/examples/bare6.rs
index a163f87..8831487 100644
--- a/examples/bare6.rs
+++ b/examples/bare6.rs
@@ -50,8 +50,8 @@ fn idle(stim: &mut Stim, rcc: RCC, gpioa: GPIOA) {
 
     // at 16 Mhz, 8_000_000 cycles = period 0.5s
     // at 64 Mhz, 4*8_000_000 cycles = period 0.5s
-    // let cycles = 8_000_000;
-    let cycles = 4 * 8_000_000;
+    let cycles = 8_000_000;
+    // let cycles = 4 * 8_000_000;
 
     loop {
         iprintln!(stim, "on {}", DWT::get_cycle_count());
@@ -137,15 +137,15 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) {
 //
 //    What is the frequency of MCO2 read by the oscilloscope?
 //
-//    ** your answer here **
+//    4 MHz
 //
 //    Compute the value of SYSCLK based on the oscilloscope reading
 //
-//    ** your answer here **
+//    4 cycles * 4 MHz = 16 MHz
 //
 //    What is the peak to peak reading of the signal?
 //
-//    ** your answer here **
+//    5.9V
 //
 //    Make a folder called "pictures" in your git project.
 //    Make a screen dump or photo of the oscilloscope output.
-- 
GitLab