aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/app_priorities.md
diff options
context:
space:
mode:
authorNils Fitinghoff <nils.fitinghoff@mobilaris.se>2023-08-29 09:28:43 +0200
committerEmil Fresk <emil.fresk@gmail.com>2023-08-29 11:31:11 +0000
commitcc1e7154fce6780b8db7fe3457405b8e02563f7d (patch)
tree7b58e18fdd4db60422d1c7c6740ae13fce073d8f /book/en/src/by-example/app_priorities.md
parent57be9b0dc9c1c53bb55d0efcaaa0b2c2cea0c7a2 (diff)
book: Update default priority to 0
Diffstat (limited to 'book/en/src/by-example/app_priorities.md')
-rw-r--r--book/en/src/by-example/app_priorities.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/by-example/app_priorities.md b/book/en/src/by-example/app_priorities.md
index 86ff985..4703291 100644
--- a/book/en/src/by-example/app_priorities.md
+++ b/book/en/src/by-example/app_priorities.md
@@ -4,9 +4,9 @@
The `priority` argument declares the static priority of each `task`.
-For Cortex-M, tasks can have priorities in the range `1..=(1 << NVIC_PRIO_BITS)` where `NVIC_PRIO_BITS` is a constant defined in the `device` crate.
+For Cortex-M, tasks can have priorities in the range `0..=(1 << NVIC_PRIO_BITS)` where `NVIC_PRIO_BITS` is a constant defined in the `device` crate.
-Omitting the `priority` argument the task priority defaults to `1`. The `idle` task has a non-configurable static priority of `0`, the lowest priority.
+Omitting the `priority` argument the task priority defaults to `0`. 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.