Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtfm-app
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
Samuel Karlsson
rtfm-app
Commits
01ea7596
Commit
01ea7596
authored
7 years ago
by
Samuel Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
bare4: tack 3
parent
ebf156f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/.bare4.rs.swp
+0
-0
0 additions, 0 deletions
examples/.bare4.rs.swp
examples/bare4.rs
+8
-0
8 additions, 0 deletions
examples/bare4.rs
with
8 additions
and
0 deletions
examples/.bare4.rs.swp
deleted
100644 → 0
+
0
−
0
View file @
ebf156f6
File deleted
This diff is collapsed.
Click to expand it.
examples/bare4.rs
+
8
−
0
View file @
01ea7596
...
...
@@ -103,14 +103,22 @@ fn main() {
//
// why is important that ordering of volatile operations are ensured by the compiler?
// ** your answer here **
// The order of the operations can efekt the out come of the program, race condition.
//
// give an example in the above code, where reordering might make things go horribly wrong
// (hint, accessing a peripheral not being powered...)
// ** your answer here **
// in som cases wen seting an walue or aktivating a perifial is nessesary to do befor a read or
// simelar.
// seting gpioA ass activ befor reading. the compiler do not know if a perifial writ is to set a
// setin or blink a led.
//
// without the non-reording proprety of `write_volatile/read_volatile` could that happen in theory
// (argue from the point of data dependencies)
// ** your answer here **
// If the compiler is left to it self wil it in som case changes the order of the read/write
// operation. if somthig can gow wrong it will. sow it is lickly that the program is broken if the
// is no forsd ordering
//
// commit your answers (bare4_3)
...
...
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