aboutsummaryrefslogtreecommitdiff
path: root/macros/ui/task-zero-prio.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-01-08 16:25:46 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:33:27 +0100
commit584ac7e1b335411e3d923aeef92466efdc92ae50 (patch)
tree99906bccb37bfe7e852d054fb52d62e6df4290c5 /macros/ui/task-zero-prio.rs
parent9a4f97ca5ebf19e6612115db5c763d0d61dd28a1 (diff)
Update UI tests, 1 failing that needs fixing
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 0000000..de3c86f
--- /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) -> ! {}
+}