diff options
author | 2020-09-22 17:20:48 +0000 | |
---|---|---|
committer | 2020-09-22 17:20:48 +0000 | |
commit | 9a33457c82ddc5a7c1243dfc784d818e60e34023 (patch) | |
tree | 091072e4b93d53486125ca6a447ec1ca7149495c | |
parent | 7ebdc376839dbed9f47860bac44a806d28c1f39b (diff) | |
parent | e487b235eb26b3f9254e21df15907039156670b3 (diff) | |
download | rtic-9a33457c82ddc5a7c1243dfc784d818e60e34023.tar.gz rtic-9a33457c82ddc5a7c1243dfc784d818e60e34023.tar.zst rtic-9a33457c82ddc5a7c1243dfc784d818e60e34023.zip |
Merge #360
360: Improved loop example docs to highlight that one cannot have empty lo… r=AfoHT a=korken89
…ops in idle
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
-rw-r--r-- | book/en/src/by-example/app.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md index e0f4f941..9a073ac4 100644 --- a/book/en/src/by-example/app.md +++ b/book/en/src/by-example/app.md @@ -77,6 +77,9 @@ references that are safe to access. The example below shows that `idle` runs after `init`. +**Note:** The `loop {}` in idle cannot be empty as this will crash the microcontroller due to a bug +in LLVM which miss-optimizes empty loops to a `UDF` instruction in release mode. + ``` rust {{#include ../../../../examples/idle.rs}} ``` |