aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/app.md
diff options
context:
space:
mode:
authorCuriouslyCurious <thecuriouslycurious@protonmail.com>2021-07-28 13:55:12 +0200
committerCuriouslyCurious <thecuriouslycurious@protonmail.com>2021-07-28 13:55:12 +0200
commit007665eeee37cb9ef6f6bd9ef9a477fbf83fd520 (patch)
tree5de4d4f6384f55c90e145acdd4208d7e7f320819 /book/en/src/by-example/app.md
parent49d4185e3bc3921250dfdf90c2816770adf1625f (diff)
book: Add note to remember to choose target
Diffstat (limited to 'book/en/src/by-example/app.md')
-rw-r--r--book/en/src/by-example/app.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md
index 50f2842..d23c261 100644
--- a/book/en/src/by-example/app.md
+++ b/book/en/src/by-example/app.md
@@ -53,6 +53,10 @@ $ cargo run --example init
{{#include ../../../../ci/expected/init.run}}
```
+> **NOTE**: Remember to always specify your chosen target device or configure
+> one to be used by default in `.cargo/config.toml`. In this case, we use
+> a Cortex M3 running in QEMU so the target is `thumbv7m-none-eabi`.
+
## `idle`
A function marked with the `idle` attribute can optionally appear in the
@@ -120,7 +124,7 @@ crate. When the `priority` argument is omitted, the priority is assumed to be
`1`. The `idle` task has a non-configurable static priority of `0`, the lowest priority.
> A higher number means a higher priority in RTIC, which is the opposite from what
-> Cortex-M does in the NVIC peripheral.
+> Cortex-M does in the NVIC peripheral.
> Explicitly, this means that number `10` has a **higher** priority than number `9`.
When several tasks are ready to be executed the one with highest static