diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-05-10 14:24:32 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2023-05-10 16:26:52 +0200 |
| commit | 67d5ade4fdbb2fb4a1c13715e4829412f4007d75 (patch) | |
| tree | d724871c3173736594811daa84abbd57b71bf105 /rtic-macros/ui/task-no-prio.rs | |
| parent | cfac6d1d90f13f22bde849816919e42f4ecf9531 (diff) | |
Fix zero prio tasks when all async tasks have default (no) arguments
Diffstat (limited to 'rtic-macros/ui/task-no-prio.rs')
| -rw-r--r-- | rtic-macros/ui/task-no-prio.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rtic-macros/ui/task-no-prio.rs b/rtic-macros/ui/task-no-prio.rs new file mode 100644 index 0000000..8327777 --- /dev/null +++ b/rtic-macros/ui/task-no-prio.rs @@ -0,0 +1,19 @@ +#![no_main] + +#[rtic_macros::mock_app(device = mock)] +mod app { + #[shared] + struct Shared {} + + #[local] + struct Local {} + + #[init] + fn init(_: init::Context) -> (Shared, Local) {} + + #[idle] + fn idle(_: idle::Context) -> ! {} + + #[task] + async fn task1(_: task1::Context) {} +} |
