Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtic_f4xx_nucleo
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Edvin Åkerfeldt
rtic_f4xx_nucleo
Commits
904deee8
Commit
904deee8
authored
4 years ago
by
Edvin Åkerfeldt
Browse files
Options
Downloads
Patches
Plain Diff
rtt_timing: Added task D, as notet in reviews
parent
416e4898
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/rtt_timing.rs
+12
-0
12 additions, 0 deletions
examples/rtt_timing.rs
with
12 additions
and
0 deletions
examples/rtt_timing.rs
+
12
−
0
View file @
904deee8
...
...
@@ -183,6 +183,18 @@ A/C = 4790151/40001 = 119,7507812 ~= 120
// Open the file in you editor and search for the `timed_loop`.
//
// [Assembly for function `timed_loop` here]
/*
08000232 <timed_loop>:
8000232: movw r1, #4100 // Load 4100 into r1 (16-bit register)
8000236: movw r2, #10000 // Load 10000 into r2 (16-bit register)
800023a: movt r1, #57344 //
800023e: ldr r0, [r1] // Load the content of E0001004 (probably the DWT register) into r0
8000240: subs r2, #1 // Decreases the loop counter with one
8000242: nop // The instruction of the loop
8000244: bne #-8 <timed_loop+0xe> // Branch not equal, two instructions back
8000246: ldr r1, [r1] // Load the content of E0001004 into r1, no ide why
8000248: bx lr // Branch back to link
*/
//
// Locate the loop body, and verify that it makes sense
// based on the information from the technical documentation:
...
...
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