aboutsummaryrefslogtreecommitdiff
path: root/examples/resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resource.rs')
-rw-r--r--examples/resource.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/resource.rs b/examples/resource.rs
index 4cd0f4ca..273af26a 100644
--- a/examples/resource.rs
+++ b/examples/resource.rs
@@ -19,9 +19,11 @@ mod app {
}
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
rtic::pend(Interrupt::UART0);
rtic::pend(Interrupt::UART1);
+
+ init::LateResources {}
}
// `shared` cannot be accessed from this context