aboutsummaryrefslogtreecommitdiff
path: root/ui/extern-interrupt-not-enough.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/extern-interrupt-not-enough.rs')
-rw-r--r--ui/extern-interrupt-not-enough.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/extern-interrupt-not-enough.rs b/ui/extern-interrupt-not-enough.rs
index f2624036..6e786347 100644
--- a/ui/extern-interrupt-not-enough.rs
+++ b/ui/extern-interrupt-not-enough.rs
@@ -2,6 +2,17 @@
#[rtic::app(device = lm3s6965)]
mod app {
+ #[shared]
+ struct Shared {}
+
+ #[local]
+ struct Local {}
+
+ #[init]
+ fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
+ (Shared {}, Local {}, init::Monotonics {})
+ }
+
#[task]
fn a(_: a::Context) {}
}