Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
August Svensson
e7020e_2019
Commits
d20ffaec
Commit
d20ffaec
authored
6 years ago
by
August Svensson
Browse files
Options
Downloads
Patches
Plain Diff
bare2_1
parent
84c4eeb0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/launch.json
+2
-2
2 additions, 2 deletions
.vscode/launch.json
examples/bare2.rs
+8
-4
8 additions, 4 deletions
examples/bare2.rs
with
10 additions
and
6 deletions
.vscode/launch.json
+
2
−
2
View file @
d20ffaec
...
@@ -389,7 +389,7 @@
...
@@ -389,7 +389,7 @@
]
]
},
},
"configFiles"
:
[
"configFiles"
:
[
"interface/stlink
-v2-1
.cfg"
,
"interface/stlink.cfg"
,
"target/stm32f4x.cfg"
"target/stm32f4x.cfg"
],
],
"cwd"
:
"${workspaceRoot}"
"cwd"
:
"${workspaceRoot}"
...
@@ -418,7 +418,7 @@
...
@@ -418,7 +418,7 @@
]
]
},
},
"configFiles"
:
[
"configFiles"
:
[
"interface/stlink
-v2-1
.cfg"
,
"interface/stlink.cfg"
,
"target/stm32f4x.cfg"
"target/stm32f4x.cfg"
],
],
"cwd"
:
"${workspaceRoot}"
"cwd"
:
"${workspaceRoot}"
...
...
This diff is collapsed.
Click to expand it.
examples/bare2.rs
+
8
−
4
View file @
d20ffaec
...
@@ -61,7 +61,7 @@ fn main() -> ! {
...
@@ -61,7 +61,7 @@ fn main() -> ! {
// This will document your crate, and open the docs in your browser.
// 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.
// 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, sea
r
ch (`S`) for DWT, and click `cortex_m::peripheral::DWT`.
// Read the API docs.
// Read the API docs.
//
//
// 1. Build and run the application (debug build).
// 1. Build and run the application (debug build).
...
@@ -71,18 +71,22 @@ fn main() -> ! {
...
@@ -71,18 +71,22 @@ fn main() -> ! {
//
//
// What is the output in the ITM console?
// What is the output in the ITM console?
//
//
// ** your answer here **
// bare2
// Start 738524136
// End 1364524344
//
//
// Rebuild and run in release mode
// Rebuild and run in release mode
//
//
// > cargo build --example bare2 --release
// > cargo build --example bare2 --release
//
//
// ** your answer here **
// bare2
// Start 2513719548
// End 2517719556
//
//
// Compute the ratio between debug/release optimized code
// Compute the ratio between debug/release optimized code
// (the speedup).
// (the speedup).
//
//
//
** your answer here **
//
156.50... times speedup!
//
//
// commit your answers (bare2_1)
// commit your answers (bare2_1)
//
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment