aboutsummaryrefslogtreecommitdiff
path: root/macros/ui/local-pub.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ui/local-pub.rs')
-rw-r--r--macros/ui/local-pub.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/ui/local-pub.rs b/macros/ui/local-pub.rs
index 8c517546..42da4f47 100644
--- a/macros/ui/local-pub.rs
+++ b/macros/ui/local-pub.rs
@@ -2,8 +2,14 @@
#[rtic_macros::mock_app(device = mock)]
mod app {
+ #[shared]
+ struct Shared {}
+
#[local]
struct Local {
pub x: u32,
}
+
+ #[init]
+ fn init(_: init::Context) -> (Shared, Local) {}
}