diff options
Diffstat (limited to 'examples/singleton.rs')
-rw-r--r-- | examples/singleton.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/singleton.rs b/examples/singleton.rs index 79815e88..9e48e541 100644 --- a/examples/singleton.rs +++ b/examples/singleton.rs @@ -20,10 +20,12 @@ const APP: () = { static mut P: Pool<M> = (); #[init(resources = [M])] - fn init() { + fn init() -> init::LateResources { rtfm::pend(Interrupt::I2C0); - P = Pool::new(resources.M); + init::LateResources { + P: Pool::new(resources.M), + } } #[interrupt( |