aboutsummaryrefslogtreecommitdiff
path: root/macros/ui/init-divergent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ui/init-divergent.rs')
-rw-r--r--macros/ui/init-divergent.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/ui/init-divergent.rs b/macros/ui/init-divergent.rs
new file mode 100644
index 0000000..5e4e96a
--- /dev/null
+++ b/macros/ui/init-divergent.rs
@@ -0,0 +1,13 @@
+#![no_main]
+
+#[rtic_macros::mock_app(device = mock)]
+mod app {
+ #[shared]
+ struct Shared {}
+
+ #[local]
+ struct Local {}
+
+ #[init]
+ fn init(_: init::Context) -> ! {}
+}