diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-21 08:40:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-21 08:40:21 +0000 |
| commit | 2f3b5cba805d7e7b736869249f46298e59bc944d (patch) | |
| tree | b191c17c8bdc5dbfae426c61694e590436c4eb4e /ui | |
| parent | 29aef36f6726e1fa87a5f5dcaa4f2745cbcdebcd (diff) | |
| parent | 18880406cb425bcd030f0b0aa9e67e8ac05bd852 (diff) | |
Merge #496
496: update the 0.5.x -> 0.6.0 migration guide r=AfoHT a=japaric
to use the new resources syntax
I also reordered the sections to cover all the resource API first before covering the spawn API
I've also added a section about the old `static mut` variable transform
Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/exception-invalid.rs | 2 | ||||
| -rw-r--r-- | ui/extern-interrupt-not-enough.rs | 2 | ||||
| -rw-r--r-- | ui/extern-interrupt-used.rs | 2 | ||||
| -rw-r--r-- | ui/task-priority-too-high.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ui/exception-invalid.rs b/ui/exception-invalid.rs index d899443..07d3c21 100644 --- a/ui/exception-invalid.rs +++ b/ui/exception-invalid.rs @@ -10,7 +10,7 @@ mod app { #[init] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task(binds = NonMaskableInt)] diff --git a/ui/extern-interrupt-not-enough.rs b/ui/extern-interrupt-not-enough.rs index 6e78634..1dbe923 100644 --- a/ui/extern-interrupt-not-enough.rs +++ b/ui/extern-interrupt-not-enough.rs @@ -10,7 +10,7 @@ mod app { #[init] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task] diff --git a/ui/extern-interrupt-used.rs b/ui/extern-interrupt-used.rs index a22b85f..882d5e3 100644 --- a/ui/extern-interrupt-used.rs +++ b/ui/extern-interrupt-used.rs @@ -10,7 +10,7 @@ mod app { #[init] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task(binds = UART0)] diff --git a/ui/task-priority-too-high.rs b/ui/task-priority-too-high.rs index 0d903d3..46ab561 100644 --- a/ui/task-priority-too-high.rs +++ b/ui/task-priority-too-high.rs @@ -10,7 +10,7 @@ mod app { #[init] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) + (Shared {}, Local {}, init::Monotonics()) } #[task(binds = GPIOA, priority = 1)] |
