aboutsummaryrefslogtreecommitdiff
path: root/examples/destructure.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-01 19:38:49 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-01 19:38:49 +0200
commite7f0d9c3e3fad77dace2ce63af02559fda46cb73 (patch)
tree8a6be0817178f5877e546d5e8e29ae6b7589628d /examples/destructure.rs
parent4d61437bb4debea5adc578ee072bff3619d8077b (diff)
downloadrtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.tar.gz
rtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.tar.zst
rtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.zip
Now late resources are always used
Diffstat (limited to 'examples/destructure.rs')
-rw-r--r--examples/destructure.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/destructure.rs b/examples/destructure.rs
index 1756bd9e..ad1d8594 100644
--- a/examples/destructure.rs
+++ b/examples/destructure.rs
@@ -22,9 +22,11 @@ const APP: () = {
}
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
rtic::pend(Interrupt::UART0);
rtic::pend(Interrupt::UART1);
+
+ init::LateResources {}
}
// Direct destructure