aboutsummaryrefslogtreecommitdiff
path: root/examples/big-struct-opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/big-struct-opt.rs')
-rw-r--r--examples/big-struct-opt.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/big-struct-opt.rs b/examples/big-struct-opt.rs
index 85ec5e61..dc6e72f7 100644
--- a/examples/big-struct-opt.rs
+++ b/examples/big-struct-opt.rs
@@ -31,7 +31,7 @@ mod app {
}
#[init]
- fn init(_: init::Context) -> init::LateResources {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
let big_struct = unsafe {
static mut BIG_STRUCT: MaybeUninit<BigStruct> = MaybeUninit::uninit();
@@ -40,9 +40,12 @@ mod app {
&mut *BIG_STRUCT.as_mut_ptr()
};
- init::LateResources {
- // assign the reference so we can use the resource
- big_struct,
- }
+ (
+ init::LateResources {
+ // assign the reference so we can use the resource
+ big_struct,
+ },
+ init::Monotonics(),
+ )
}
}