aboutsummaryrefslogtreecommitdiff
path: root/examples/binds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/binds.rs')
-rw-r--r--examples/binds.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/binds.rs b/examples/binds.rs
index 82bf8964..42010ae2 100644
--- a/examples/binds.rs
+++ b/examples/binds.rs
@@ -11,12 +11,14 @@ use panic_semihosting as _;
// `examples/interrupt.rs` rewritten to use `binds`
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
rtic::pend(Interrupt::UART0);
hprintln!("init").unwrap();
+
+ init::LateResources {}
}
#[idle]
@@ -45,4 +47,4 @@ const APP: () = {
)
.unwrap();
}
-};
+}