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 2361fd00..06aa9756 100644
--- a/examples/resource.rs
+++ b/examples/resource.rs
@@ -18,9 +18,11 @@ const 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