diff options
Diffstat (limited to 'macros/ui/task-idle.rs')
-rw-r--r-- | macros/ui/task-idle.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/ui/task-idle.rs b/macros/ui/task-idle.rs new file mode 100644 index 00000000..3be6e282 --- /dev/null +++ b/macros/ui/task-idle.rs @@ -0,0 +1,13 @@ +#![no_main] + +#[rtic_macros::mock_app(device = mock)] +mod app { + #[idle] + fn foo(_: foo::Context) -> ! { + loop {} + } + + // name collides with `#[idle]` function + #[task] + fn foo(_: foo::Context) {} +} |