aboutsummaryrefslogtreecommitdiff
path: root/examples/late.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-06-20 06:19:59 +0200
committerJorge Aparicio <jorge@japaric.io>2019-06-20 06:19:59 +0200
commit4e51bb68b976c6bb6a9a989dc560d2a8123a84ca (patch)
tree5c14f21f904c15034d477c7e4400e01d212a9f2a /examples/late.rs
parentb150ab29e25637e41ba5de81f6cbbdfe24834a3f (diff)
RFC #207
Diffstat (limited to 'examples/late.rs')
-rw-r--r--examples/late.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/late.rs b/examples/late.rs
index 4d48a6a..19807ff 100644
--- a/examples/late.rs
+++ b/examples/late.rs
@@ -47,8 +47,8 @@ const APP: () = {
}
}
- #[interrupt(resources = [P])]
- fn UART0(c: UART0::Context) {
+ #[task(binds = UART0, resources = [P])]
+ fn uart0(c: uart0::Context) {
c.resources.P.enqueue(42).unwrap();
}
};