aboutsummaryrefslogtreecommitdiff
path: root/examples/capacity.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-11 19:41:57 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-10-11 20:35:50 +0200
commit5b8e6a22ab68e316e11641dedf5b39e20878c7b7 (patch)
tree1bdc1812ca24203f3b99f381b1e9f8c89f60be24 /examples/capacity.rs
parent524273c96a978299b64e51a9cdcc007585a0f170 (diff)
downloadrtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.tar.gz
rtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.tar.zst
rtic-5b8e6a22ab68e316e11641dedf5b39e20878c7b7.zip
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/capacity.rs')
-rw-r--r--examples/capacity.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/capacity.rs b/examples/capacity.rs
index ba8b15b0..f903acbc 100644
--- a/examples/capacity.rs
+++ b/examples/capacity.rs
@@ -18,14 +18,14 @@ mod app {
init::LateResources {}
}
- #[task(binds = UART0, spawn = [foo, bar])]
- fn uart0(c: uart0::Context) {
- c.spawn.foo(0).unwrap();
- c.spawn.foo(1).unwrap();
- c.spawn.foo(2).unwrap();
- c.spawn.foo(3).unwrap();
-
- c.spawn.bar().unwrap();
+ #[task(binds = UART0)]
+ fn uart0(_: uart0::Context) {
+ foo::spawn(0).unwrap();
+ foo::spawn(1).unwrap();
+ foo::spawn(2).unwrap();
+ foo::spawn(3).unwrap();
+
+ bar::spawn().unwrap();
}
#[task(capacity = 4)]