aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/app_priorities.md
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2023-02-01 01:15:56 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:33:40 +0100
commit63f3d784fe519d248c89b64006dbc13d83e07360 (patch)
tree8be6e44f20126fac674bf213eba29f81d56285bd /book/en/src/by-example/app_priorities.md
parent8d46fb9cf9f2b9cdd14844672ad840d777739cb2 (diff)
Revert accidental removal of editorial changes
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, 3 insertions, 1 deletions
diff --git a/book/en/src/by-example/app_priorities.md b/book/en/src/by-example/app_priorities.md
index f03ebf7..9d27658 100644
--- a/book/en/src/by-example/app_priorities.md
+++ b/book/en/src/by-example/app_priorities.md
@@ -15,7 +15,7 @@ Omitting the `priority` argument the task priority defaults to `1`. The `idle` t
The highest static priority task takes precedence when more than one task are ready to execute.
The following scenario demonstrates task prioritization:
-Spawning a higher priority task A during execution of a lower priority task B pends task A. Task A has higher priority thus preempting task B which gets suspended until task A completes execution. Thus, when task A completes task B resumes execution.
+Spawning a higher priority task A during execution of a lower priority task B suspends task B. Task A has higher priority thus preempting task B which gets suspended until task A completes execution. Thus, when task A completes task B resumes execution.
```text
Task Priority
@@ -46,6 +46,8 @@ Note that the task `bar` does *not* preempt task `baz` because its priority is t
One more note about priorities: choosing a priority higher than what the device supports will result in a compilation error. The error is cryptic due to limitations in the Rust language, if `priority = 9` for task `uart0_interrupt` in `example/common.rs` this looks like:
+The error is cryptic due to limitations in the Rust language if `priority = 9` for task `uart0_interrupt` in `example/common.rs` this looks like:
+
```text
error[E0080]: evaluation of constant value failed
--> examples/common.rs:10:1