aboutsummaryrefslogtreecommitdiff
path: root/book/en/src
diff options
context:
space:
mode:
Diffstat (limited to 'book/en/src')
-rw-r--r--book/en/src/by-example/timer-queue.md4
-rw-r--r--book/en/src/internals/critical-sections.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/book/en/src/by-example/timer-queue.md b/book/en/src/by-example/timer-queue.md
index 7c8be38..94d2281 100644
--- a/book/en/src/by-example/timer-queue.md
+++ b/book/en/src/by-example/timer-queue.md
@@ -34,6 +34,10 @@ first appear in the `schedule` argument of the context attribute. When
scheduling a task the (user-defined) `Instant` at which the task should be
executed must be passed as the first argument of the `schedule` invocation.
+Additionally, the chosen `monotonic` timer must be configured and initialized
+during the `#[init]` phase. Note that this is *also* the case if you choose to
+use the `CYCCNT` provided by the `cortex-m-rtfm` crate.
+
The example below schedules two tasks from `init`: `foo` and `bar`. `foo` is
scheduled to run 8 million clock cycles in the future. Next, `bar` is scheduled
to run 4 million clock cycles in the future. Thus `bar` runs before `foo` since
diff --git a/book/en/src/internals/critical-sections.md b/book/en/src/internals/critical-sections.md
index 046098e..94aee2c 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;