aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/migration/migration_v5.md
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@grepit.se>2021-12-18 22:35:16 +0100
committerHenrik Tjäder <henrik@grepit.se>2021-12-19 01:33:15 +0100
commit8e68c527219477f096b3ef4ccc0ece240a98a645 (patch)
treeea6ae8bb96a077868fa44c874ed9feb8e4cee144 /book/en/src/migration/migration_v5.md
parent833e22da51f65c1c9c58403c46318df68c558fce (diff)
Docs: Migration docs
Diffstat (limited to 'book/en/src/migration/migration_v5.md')
-rw-r--r--book/en/src/migration/migration_v5.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/book/en/src/migration/migration_v5.md b/book/en/src/migration/migration_v5.md
index 24353d2..5c0dad1 100644
--- a/book/en/src/migration/migration_v5.md
+++ b/book/en/src/migration/migration_v5.md
@@ -71,7 +71,7 @@ mod app {
}
```
-## Move Dispatchers from `extern "C"` to app arguments.
+## Move Dispatchers from `extern "C"` to app arguments
Change
@@ -171,7 +171,10 @@ fn b(_: b::Context) {}
## Symmetric locks
-Now RTIC utilizes symmetric locks, this means that the `lock` method need to be used for all `shared` resource access. In old code one could do the following as the high priority task has exclusive access to the resource:
+Now RTIC utilizes symmetric locks, this means that the `lock` method need
+to be used for all `shared` resource access.
+In old code one could do the following as the high priority
+task has exclusive access to the resource:
``` rust
#[task(priority = 2, resources = [r])]
@@ -354,6 +357,7 @@ Note that the attributes `spawn` and `schedule` are no longer needed.
### Extern tasks
-Both software and hardware tasks can now be defined external to the `mod app`. Previously this was possible only by implementing a trampoline calling out the task implementation.
+Both software and hardware tasks can now be defined external to the `mod app`.
+Previously this was possible only by implementing a trampoline calling out the task implementation.
See examples `examples/extern_binds.rs` and `examples/extern_spawn.rs`.