diff options
author | 2019-10-10 16:42:26 +0200 | |
---|---|---|
committer | 2019-10-10 16:42:26 +0200 | |
commit | bbd47e20ee094d34a65abc41b5ab7f78b8df35d3 (patch) | |
tree | 5fdb41643fd84ae1976ae69dca20afc7f364a6c6 | |
parent | 38306389ea4d8fadac8565e681887740912e14bd (diff) | |
download | rtic-bbd47e20ee094d34a65abc41b5ab7f78b8df35d3.tar.gz rtic-bbd47e20ee094d34a65abc41b5ab7f78b8df35d3.tar.zst rtic-bbd47e20ee094d34a65abc41b5ab7f78b8df35d3.zip |
critical sections: each task gets its own context
Fixing what was probably a copy-paste error; different tasks each have different types for their context argument.
Diffstat (limited to '')
-rw-r--r-- | book/en/src/internals/critical-sections.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/en/src/internals/critical-sections.md b/book/en/src/internals/critical-sections.md index 046098ef..94aee2c7 100644 --- a/book/en/src/internals/critical-sections.md +++ b/book/en/src/internals/critical-sections.md @@ -50,7 +50,7 @@ const APP: () = { } #[interrupt(binds = UART1, priority = 2, resources = [x])] - fn bar(c: foo::Context) { + fn bar(c: bar::Context) { let mut x: &mut u64 = c.resources.x; *x += 1; |