aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/exception-invalid.rs4
-rw-r--r--ui/extern-interrupt-not-enough.rs6
-rw-r--r--ui/extern-interrupt-not-enough.stderr6
-rw-r--r--ui/extern-interrupt-used.rs4
-rw-r--r--ui/task-priority-too-high.rs4
-rw-r--r--ui/task-priority-too-high.stderr2
-rw-r--r--ui/unknown-interrupt.rs4
7 files changed, 15 insertions, 15 deletions
diff --git a/ui/exception-invalid.rs b/ui/exception-invalid.rs
index 07d3c21..4f8e943 100644
--- a/ui/exception-invalid.rs
+++ b/ui/exception-invalid.rs
@@ -9,8 +9,8 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
- (Shared {}, Local {}, init::Monotonics())
+ fn init(cx: init::Context) -> (Shared, Local) {
+ (Shared {}, Local {})
}
#[task(binds = NonMaskableInt)]
diff --git a/ui/extern-interrupt-not-enough.rs b/ui/extern-interrupt-not-enough.rs
index 1dbe923..94c8ee1 100644
--- a/ui/extern-interrupt-not-enough.rs
+++ b/ui/extern-interrupt-not-enough.rs
@@ -9,10 +9,10 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
- (Shared {}, Local {}, init::Monotonics())
+ fn init(cx: init::Context) -> (Shared, Local) {
+ (Shared {}, Local {})
}
#[task]
- fn a(_: a::Context) {}
+ async fn a(_: a::Context) {}
}
diff --git a/ui/extern-interrupt-not-enough.stderr b/ui/extern-interrupt-not-enough.stderr
index 6f28b7a..e6c01b9 100644
--- a/ui/extern-interrupt-not-enough.stderr
+++ b/ui/extern-interrupt-not-enough.stderr
@@ -1,5 +1,5 @@
error: not enough interrupts to dispatch all software tasks (need: 1; given: 0)
- --> ui/extern-interrupt-not-enough.rs:17:8
+ --> ui/extern-interrupt-not-enough.rs:17:14
|
-17 | fn a(_: a::Context) {}
- | ^
+17 | async fn a(_: a::Context) {}
+ | ^
diff --git a/ui/extern-interrupt-used.rs b/ui/extern-interrupt-used.rs
index 882d5e3..42de4c0 100644
--- a/ui/extern-interrupt-used.rs
+++ b/ui/extern-interrupt-used.rs
@@ -9,8 +9,8 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
- (Shared {}, Local {}, init::Monotonics())
+ fn init(cx: init::Context) -> (Shared, Local) {
+ (Shared {}, Local {})
}
#[task(binds = UART0)]
diff --git a/ui/task-priority-too-high.rs b/ui/task-priority-too-high.rs
index 46ab561..44e4a25 100644
--- a/ui/task-priority-too-high.rs
+++ b/ui/task-priority-too-high.rs
@@ -9,8 +9,8 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
- (Shared {}, Local {}, init::Monotonics())
+ fn init(cx: init::Context) -> (Shared, Local) {
+ (Shared {}, Local {})
}
#[task(binds = GPIOA, priority = 1)]
diff --git a/ui/task-priority-too-high.stderr b/ui/task-priority-too-high.stderr
index a7a15eb..1256377 100644
--- a/ui/task-priority-too-high.stderr
+++ b/ui/task-priority-too-high.stderr
@@ -1,7 +1,7 @@
warning: unused variable: `cx`
--> ui/task-priority-too-high.rs:12:13
|
-12 | fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
+12 | fn init(cx: init::Context) -> (Shared, Local) {
| ^^ help: if this is intentional, prefix it with an underscore: `_cx`
|
= note: `#[warn(unused_variables)]` on by default
diff --git a/ui/unknown-interrupt.rs b/ui/unknown-interrupt.rs
index f2bc629..3c6c69f 100644
--- a/ui/unknown-interrupt.rs
+++ b/ui/unknown-interrupt.rs
@@ -9,7 +9,7 @@ mod app {
struct Local {}
#[init]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
- (Shared {}, Local {}, init::Monotonics())
+ fn init(cx: init::Context) -> (Shared, Local) {
+ (Shared {}, Local {})
}
}