diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-06-20 06:19:59 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-06-20 06:19:59 +0200 |
| commit | 4e51bb68b976c6bb6a9a989dc560d2a8123a84ca (patch) | |
| tree | 5c14f21f904c15034d477c7e4400e01d212a9f2a /examples/shared-with-init.rs | |
| parent | b150ab29e25637e41ba5de81f6cbbdfe24834a3f (diff) | |
RFC #207
Diffstat (limited to 'examples/shared-with-init.rs')
| -rw-r--r-- | examples/shared-with-init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs index 1640ca9..ed73c8b 100644 --- a/examples/shared-with-init.rs +++ b/examples/shared-with-init.rs @@ -25,8 +25,8 @@ const APP: () = { rtfm::pend(Interrupt::UART0); } - #[interrupt(resources = [SHARED])] - fn UART0(c: UART0::Context) { + #[task(binds = UART0, resources = [SHARED])] + fn uart0(c: uart0::Context) { if let Some(message) = c.resources.SHARED.take() { // `message` has been received drop(message); |
