aboutsummaryrefslogtreecommitdiff
path: root/examples/singleton.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-02-12 15:08:46 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-02-12 15:08:46 +0100
commit89c922079eaefc748febdb62aeccfff598a07c69 (patch)
treeeebd97bd85976b5aa962353e2a48590e57557447 /examples/singleton.rs
parent88599780e0eba38d9e543b7809f586479f6956bd (diff)
downloadrtic-89c922079eaefc748febdb62aeccfff598a07c69.tar.gz
rtic-89c922079eaefc748febdb62aeccfff598a07c69.tar.zst
rtic-89c922079eaefc748febdb62aeccfff598a07c69.zip
update examples and tests
Diffstat (limited to 'examples/singleton.rs')
-rw-r--r--examples/singleton.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/singleton.rs b/examples/singleton.rs
index 79815e88..9e48e541 100644
--- a/examples/singleton.rs
+++ b/examples/singleton.rs
@@ -20,10 +20,12 @@ const APP: () = {
static mut P: Pool<M> = ();
#[init(resources = [M])]
- fn init() {
+ fn init() -> init::LateResources {
rtfm::pend(Interrupt::I2C0);
- P = Pool::new(resources.M);
+ init::LateResources {
+ P: Pool::new(resources.M),
+ }
}
#[interrupt(