diff options
Diffstat (limited to 'examples/shared-with-init.rs')
-rw-r--r-- | examples/shared-with-init.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs index bd55f7ef..9f7e26aa 100644 --- a/examples/shared-with-init.rs +++ b/examples/shared-with-init.rs @@ -13,7 +13,10 @@ use rtic::app; pub struct MustBeSend; #[app(device = lm3s6965)] -const APP: () = { +mod app { + use super::MustBeSend; + + #[resources] struct Resources { #[init(None)] shared: Option<MustBeSend>, @@ -37,4 +40,4 @@ const APP: () = { debug::exit(debug::EXIT_SUCCESS); } } -}; +} |