aboutsummaryrefslogtreecommitdiff
path: root/examples/smallest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/smallest.rs')
-rw-r--r--examples/smallest.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/smallest.rs b/examples/smallest.rs
index b8cbf87e..6afcfbd4 100644
--- a/examples/smallest.rs
+++ b/examples/smallest.rs
@@ -7,4 +7,15 @@ use panic_semihosting as _; // panic handler
use rtic::app;
#[app(device = lm3s6965)]
-mod app {}
+mod app {
+ #[shared]
+ struct Shared {}
+
+ #[local]
+ struct Local {}
+
+ #[init]
+ fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
+ (Shared {}, Local {}, init::Monotonics {})
+ }
+}