aboutsummaryrefslogtreecommitdiff
path: root/examples/pool.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-10-11 19:41:57 +0200
committerEmil Fresk <emil.fresk@gmail.com>2020-10-11 20:35:50 +0200
commit5b8e6a22ab68e316e11641dedf5b39e20878c7b7 (patch)
tree1bdc1812ca24203f3b99f381b1e9f8c89f60be24 /examples/pool.rs
parent524273c96a978299b64e51a9cdcc007585a0f170 (diff)
Fixing examples and tests, modules now import user imports correctly
Fmt Correct syntax crate UI test fix Fix build script Cleanup More cleanup
Diffstat (limited to 'examples/pool.rs')
-rw-r--r--examples/pool.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/pool.rs b/examples/pool.rs
index cdbabca..2ad9984 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -36,16 +36,16 @@ mod app {
init::LateResources {}
}
- #[task(binds = I2C0, priority = 2, spawn = [foo, bar])]
- fn i2c0(c: i2c0::Context) {
+ #[task(binds = I2C0, priority = 2)]
+ fn i2c0(_: i2c0::Context) {
// claim a memory block, leave it uninitialized and ..
let x = P::alloc().unwrap().freeze();
// .. send it to the `foo` task
- c.spawn.foo(x).ok().unwrap();
+ foo::spawn(x).ok().unwrap();
// send another block to the task `bar`
- c.spawn.bar(P::alloc().unwrap().freeze()).ok().unwrap();
+ bar::spawn(P::alloc().unwrap().freeze()).ok().unwrap();
}
#[task]