diff options
Diffstat (limited to 'examples/capacity.rs')
-rw-r--r-- | examples/capacity.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/capacity.rs b/examples/capacity.rs index e1a835ca..ebc86b80 100644 --- a/examples/capacity.rs +++ b/examples/capacity.rs @@ -16,8 +16,8 @@ const APP: () = { rtfm::pend(Interrupt::UART0); } - #[interrupt(spawn = [foo, bar])] - fn UART0(c: UART0::Context) { + #[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(); |