From d20ffaec69254f9c0d0cef3625feecd0165bb87a Mon Sep 17 00:00:00 2001 From: sheepwall <a.sve@live.se> Date: Fri, 1 Mar 2019 09:53:09 +0100 Subject: [PATCH] bare2_1 --- .vscode/launch.json | 4 ++-- examples/bare2.rs | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c1a50eb..9aabec5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -389,7 +389,7 @@ ] }, "configFiles": [ - "interface/stlink-v2-1.cfg", + "interface/stlink.cfg", "target/stm32f4x.cfg" ], "cwd": "${workspaceRoot}" @@ -418,7 +418,7 @@ ] }, "configFiles": [ - "interface/stlink-v2-1.cfg", + "interface/stlink.cfg", "target/stm32f4x.cfg" ], "cwd": "${workspaceRoot}" diff --git a/examples/bare2.rs b/examples/bare2.rs index c039a6e..14e7e67 100644 --- a/examples/bare2.rs +++ b/examples/bare2.rs @@ -61,7 +61,7 @@ fn main() -> ! { // This will document your crate, and open the docs in your browser. // If it does not auto-open, then copy paste the path in your browser. // -// In the docs, seach (`S`) for DWT, and click `cortex_m::peripheral::DWT`. +// In the docs, search (`S`) for DWT, and click `cortex_m::peripheral::DWT`. // Read the API docs. // // 1. Build and run the application (debug build). @@ -71,18 +71,22 @@ fn main() -> ! { // // What is the output in the ITM console? // -// ** your answer here ** +// bare2 +// Start 738524136 +// End 1364524344 // // Rebuild and run in release mode // // > cargo build --example bare2 --release // -// ** your answer here ** +// bare2 +// Start 2513719548 +// End 2517719556 // // Compute the ratio between debug/release optimized code // (the speedup). // -// ** your answer here ** +// 156.50... times speedup! // // commit your answers (bare2_1) // -- GitLab