diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-01-25 20:11:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 20:11:17 +0000 |
| commit | a5e18cd5294870be824f90bdd1d586586c37a153 (patch) | |
| tree | 0f9a7f77be32c1438582ccafcb45837fa949f38a /book/en/src/by-example/app_priorities.md | |
| parent | 3240fb332a7b1b17333ac1c589b303909bde1dc9 (diff) | |
| parent | 04189cc6844d7d43305a57464713defb5a46d85c (diff) | |
Merge #686
686: Book: Editorial review r=korken89 a=AfoHT
Continuation of https://github.com/rtic-rs/cortex-m-rtic/pull/618
Better late than never...
A big thanks to `@jvanderk` !
Co-authored-by: John van der Koijk <33966414+jvanderk@users.noreply.github.com>
Diffstat (limited to 'book/en/src/by-example/app_priorities.md')
| -rw-r--r-- | book/en/src/by-example/app_priorities.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/book/en/src/by-example/app_priorities.md b/book/en/src/by-example/app_priorities.md index 1a92ec8..8cee749 100644 --- a/book/en/src/by-example/app_priorities.md +++ b/book/en/src/by-example/app_priorities.md @@ -18,8 +18,8 @@ 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 +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 @@ -53,7 +53,8 @@ when `baz`returns. When `bar` returns `foo` can resume. 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 language, + +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 |
