aboutsummaryrefslogtreecommitdiff
path: root/examples/not-sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r--examples/not-sync.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index a7eaac8e..75412e63 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -15,15 +15,21 @@ pub struct NotSync {
}
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
+ use super::NotSync;
+ use core::marker::PhantomData;
+
+ #[resources]
struct Resources {
#[init(NotSync { _0: PhantomData })]
shared: NotSync,
}
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
debug::exit(debug::EXIT_SUCCESS);
+
+ init::LateResources {}
}
#[task(resources = [&shared])]
@@ -42,4 +48,4 @@ const APP: () = {
extern "C" {
fn SSI0();
}
-};
+}