aboutsummaryrefslogtreecommitdiff
path: root/macros/ui/task-zero-prio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ui/task-zero-prio.rs')
-rw-r--r--macros/ui/task-zero-prio.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/ui/task-zero-prio.rs b/macros/ui/task-zero-prio.rs
new file mode 100644
index 00000000..de3c86fc
--- /dev/null
+++ b/macros/ui/task-zero-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) {}
+
+ #[task(priority = 0)]
+ fn foo(_: foo::Context) {}
+
+ #[idle]
+ fn idle(_: idle::Context) -> ! {}
+}