aboutsummaryrefslogtreecommitdiff
path: root/examples/generics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/generics.rs')
-rw-r--r--examples/generics.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/generics.rs b/examples/generics.rs
index c65e6518..3107dd11 100644
--- a/examples/generics.rs
+++ b/examples/generics.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 {}
}
#[task(binds = UART0, resources = [shared])]