diff options
author | 2019-06-20 06:19:59 +0200 | |
---|---|---|
committer | 2019-06-20 06:19:59 +0200 | |
commit | 4e51bb68b976c6bb6a9a989dc560d2a8123a84ca (patch) | |
tree | 5c14f21f904c15034d477c7e4400e01d212a9f2a /examples/t-spawn.rs | |
parent | b150ab29e25637e41ba5de81f6cbbdfe24834a3f (diff) | |
download | rtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.tar.gz rtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.tar.zst rtic-4e51bb68b976c6bb6a9a989dc560d2a8123a84ca.zip |
RFC #207
Diffstat (limited to 'examples/t-spawn.rs')
-rw-r--r-- | examples/t-spawn.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs index 6bb9b31f..682b9b89 100644 --- a/examples/t-spawn.rs +++ b/examples/t-spawn.rs @@ -25,15 +25,15 @@ const APP: () = { loop {} } - #[exception(spawn = [foo, bar, baz])] - fn SVCall(c: SVCall::Context) { + #[task(binds = SVCall, spawn = [foo, bar, baz])] + fn svcall(c: svcall::Context) { let _: Result<(), ()> = c.spawn.foo(); let _: Result<(), u32> = c.spawn.bar(0); let _: Result<(), (u32, u32)> = c.spawn.baz(0, 1); } - #[interrupt(spawn = [foo, bar, baz])] - fn UART0(c: UART0::Context) { + #[task(binds = UART0, spawn = [foo, bar, baz])] + fn uart0(c: uart0::Context) { let _: Result<(), ()> = c.spawn.foo(); let _: Result<(), u32> = c.spawn.bar(0); let _: Result<(), (u32, u32)> = c.spawn.baz(0, 1); |