aboutsummaryrefslogtreecommitdiff
path: root/examples/t-resource.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-06-20 06:19:59 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-06-20 06:19:59 +0200
commit4e51bb68b976c6bb6a9a989dc560d2a8123a84ca (patch)
tree5c14f21f904c15034d477c7e4400e01d212a9f2a /examples/t-resource.rs
parentb150ab29e25637e41ba5de81f6cbbdfe24834a3f (diff)
downloadrtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.tar.gz
rtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.tar.zst
rtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.zip
RFC #207
Diffstat (limited to 'examples/t-resource.rs')
-rw-r--r--examples/t-resource.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/t-resource.rs b/examples/t-resource.rs
index 40dc2a65..adcc04b3 100644
--- a/examples/t-resource.rs
+++ b/examples/t-resource.rs
@@ -51,8 +51,8 @@ const APP: () = {
loop {}
}
- #[interrupt(resources = [O3, S1, S2, S3])]
- fn UART0(c: UART0::Context) {
+ #[task(binds = UART0, resources = [O3, S1, S2, S3])]
+ fn uart0(c: uart0::Context) {
// owned by interrupt == `&mut`
let _: &mut u32 = c.resources.O3;
@@ -66,8 +66,8 @@ const APP: () = {
let _: &u32 = c.resources.S3;
}
- #[interrupt(resources = [S2, O5])]
- fn UART1(c: UART1::Context) {
+ #[task(binds = UART1, resources = [S2, O5])]
+ fn uart1(c: uart1::Context) {
// owned by interrupt == `&` if read-only
let _: &u32 = c.resources.O5;