diff options
author | 2022-08-05 08:59:16 +0200 | |
---|---|---|
committer | 2022-08-05 09:00:46 +0200 | |
commit | b48a95e87930fa51ef6fb47ad08a95d3159d9bac (patch) | |
tree | b2475335911408e0b59751980823bd11db742308 /macros/src/codegen/idle.rs | |
parent | 4488ac0421b53ffa5b97e6dddd396cbdb52c6283 (diff) | |
download | rtic-b48a95e87930fa51ef6fb47ad08a95d3159d9bac.tar.gz rtic-b48a95e87930fa51ef6fb47ad08a95d3159d9bac.tar.zst rtic-b48a95e87930fa51ef6fb47ad08a95d3159d9bac.zip |
Fix codegen when having executor at multiple priorities
The codegen generated code for all executors in all
dispatchers, which caused some weird bugs.
Also the definition of an executor was not generated
globally, this caused use after free errors when having
multiple priority levels.
Diffstat (limited to 'macros/src/codegen/idle.rs')
-rw-r--r-- | macros/src/codegen/idle.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/src/codegen/idle.rs b/macros/src/codegen/idle.rs index 83b85d7b..ea23f814 100644 --- a/macros/src/codegen/idle.rs +++ b/macros/src/codegen/idle.rs @@ -80,6 +80,9 @@ pub fn codegen( (mod_app, root_idle, user_idle, call_idle) } else { + // TODO: No idle defined, check for 0-priority tasks and generate an executor if needed + + // ( vec![], vec![], |