aboutsummaryrefslogtreecommitdiff
path: root/examples/static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/static.rs')
-rw-r--r--examples/static.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/static.rs b/examples/static.rs
index eeb522f5..5eb7b197 100644
--- a/examples/static.rs
+++ b/examples/static.rs
@@ -23,15 +23,15 @@ const APP: () = {
init::LateResources { KEY: 0xdeadbeef }
}
- #[interrupt(resources = [KEY])]
- fn UART0(c: UART0::Context) {
+ #[task(binds = UART0, resources = [KEY])]
+ fn uart0(c: uart0::Context) {
hprintln!("UART0(KEY = {:#x})", c.resources.KEY).unwrap();
debug::exit(debug::EXIT_SUCCESS);
}
- #[interrupt(priority = 2, resources = [KEY])]
- fn UART1(c: UART1::Context) {
+ #[task(binds = UART1, priority = 2, resources = [KEY])]
+ fn uart1(c: uart1::Context) {
hprintln!("UART1(KEY = {:#x})", c.resources.KEY).unwrap();
}
};