aboutsummaryrefslogtreecommitdiff
path: root/examples/t-binds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-binds.rs')
-rw-r--r--examples/t-binds.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/t-binds.rs b/examples/t-binds.rs
index fbc89e88..2c405ea0 100644
--- a/examples/t-binds.rs
+++ b/examples/t-binds.rs
@@ -9,9 +9,15 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
+ #[shared]
+ struct Shared {}
+
+ #[local]
+ struct Local {}
+
#[init]
- fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
- (init::LateResources {}, init::Monotonics())
+ fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
+ (Shared {}, Local {}, init::Monotonics())
}
// Cortex-M exception