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
6dddd14d
Commit
6dddd14d
authored
4 years ago
by
Edvin Åkerfeldt
Browse files
Options
Downloads
Patches
Plain Diff
timing_resources, Q14 & Q15, file all done
parent
8f7b9457
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/timing_resources.rs
+7
-0
7 additions, 0 deletions
examples/timing_resources.rs
with
7 additions
and
0 deletions
examples/timing_resources.rs
+
7
−
0
View file @
6dddd14d
...
...
@@ -322,6 +322,10 @@ It was safe because exti0 had the highest priority of the tasks accessing the re
// Motivate your answer (not just a number).
//
// [Your answer here]
/*
Ignoring the breakpoints in the function we're left with the locking/unlocking of the resource and entering/leaving the task.
Acording to the table this would take approx. 650+1522+260+170 = 2602 cycles (best case).
*/
//
// Notice, the Rust implementation is significantly faster than the C code version
// of Real-Time For the Masses back in 2013.
...
...
@@ -332,3 +336,6 @@ It was safe because exti0 had the highest priority of the tasks accessing the re
// (Hint, what possible optimization can safely be applied by RTIC + Rust + LLVM.)
//
// [Your answer here]
/*
Because all optimization techniques from LLVM can be applied on the RTIC generated code without worries of anything breaking.
*/
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