diff options
Diffstat (limited to 'rtic-macros/ui/local-pub.rs')
| -rw-r--r-- | rtic-macros/ui/local-pub.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rtic-macros/ui/local-pub.rs b/rtic-macros/ui/local-pub.rs new file mode 100644 index 0000000..42da4f4 --- /dev/null +++ b/rtic-macros/ui/local-pub.rs @@ -0,0 +1,15 @@ +#![no_main] + +#[rtic_macros::mock_app(device = mock)] +mod app { + #[shared] + struct Shared {} + + #[local] + struct Local { + pub x: u32, + } + + #[init] + fn init(_: init::Context) -> (Shared, Local) {} +} |
