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 /ui/single/resources-cfg.rs | |
| parent | b150ab29e25637e41ba5de81f6cbbdfe24834a3f (diff) | |
RFC #207
Diffstat (limited to 'ui/single/resources-cfg.rs')
| -rw-r--r-- | ui/single/resources-cfg.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs index f8c3672..6f608fa 100644 --- a/ui/single/resources-cfg.rs +++ b/ui/single/resources-cfg.rs @@ -41,16 +41,16 @@ const APP: () = { loop {} } - #[interrupt(resources = [O3, S1, S2, S3])] - fn UART0(c: UART0::Context) { + #[task(binds = UART0, resources = [O3, S1, S2, S3])] + fn uart0(c: uart0::Context) { c.resources.O3; c.resources.S1; c.resources.S2; c.resources.S3; } - #[interrupt(resources = [S2, O5])] - fn UART1(c: UART1::Context) { + #[task(binds = UART1, resources = [S2, O5])] + fn uart1(c: uart1::Context) { c.resources.S2; c.resources.O5; } |
