aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-10-01 20:14:07 +0200
committerEmil Fresk <emil.fresk@gmail.com>2020-10-01 20:14:07 +0200
commit9d2598dc071882a94b813ab1d9ddf49092546257 (patch)
treed2f80d17a0a23c6c1b9f1f2d320617bc0406407a /ui
parente7f0d9c3e3fad77dace2ce63af02559fda46cb73 (diff)
Fixing test errors
Diffstat (limited to 'ui')
-rw-r--r--ui/single/locals-cfg.rs4
-rw-r--r--ui/single/locals-cfg.stderr16
-rw-r--r--ui/single/resources-cfg.rs4
-rw-r--r--ui/single/resources-cfg.stderr40
-rw-r--r--ui/single/task-priority-too-high.rs4
5 files changed, 37 insertions, 31 deletions
diff --git a/ui/single/locals-cfg.rs b/ui/single/locals-cfg.rs
index 54bba8a..cd8677a 100644
--- a/ui/single/locals-cfg.rs
+++ b/ui/single/locals-cfg.rs
@@ -3,11 +3,13 @@
#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
- fn init(_: init::Context) {
+ fn init(_: init::Context) -> init::LateResources {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
+
+ init::LateResources {}
}
#[idle]
diff --git a/ui/single/locals-cfg.stderr b/ui/single/locals-cfg.stderr
index bb558fa..dc104a6 100644
--- a/ui/single/locals-cfg.stderr
+++ b/ui/single/locals-cfg.stderr
@@ -5,27 +5,27 @@ error[E0425]: cannot find value `FOO` in this scope
| ^^^ not found in this scope
error[E0425]: cannot find value `FOO` in this scope
- --> $DIR/locals-cfg.rs:18:9
+ --> $DIR/locals-cfg.rs:20:9
|
-18 | FOO;
+20 | FOO;
| ^^^ not found in this scope
error[E0425]: cannot find value `FOO` in this scope
- --> $DIR/locals-cfg.rs:28:9
+ --> $DIR/locals-cfg.rs:30:9
|
-28 | FOO;
+30 | FOO;
| ^^^ not found in this scope
error[E0425]: cannot find value `FOO` in this scope
- --> $DIR/locals-cfg.rs:36:9
+ --> $DIR/locals-cfg.rs:38:9
|
-36 | FOO;
+38 | FOO;
| ^^^ not found in this scope
error[E0425]: cannot find value `FOO` in this scope
- --> $DIR/locals-cfg.rs:44:9
+ --> $DIR/locals-cfg.rs:46:9
|
-44 | FOO;
+46 | FOO;
| ^^^ not found in this scope
error: duplicate lang item in crate `panic_halt`: `panic_impl`.
diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs
index df7ac80..bcb7120 100644
--- a/ui/single/resources-cfg.rs
+++ b/ui/single/resources-cfg.rs
@@ -41,12 +41,14 @@ const APP: () = {
}
#[init(resources = [o1, o4, o5, o6, s3])]
- fn init(c: init::Context) {
+ fn init(c: init::Context) -> init::LateResources {
c.resources.o1;
c.resources.o4;
c.resources.o5;
c.resources.o6;
c.resources.s3;
+
+ init::LateResources {}
}
#[idle(resources = [o2, &o4, s1, &s3])]
diff --git a/ui/single/resources-cfg.stderr b/ui/single/resources-cfg.stderr
index c47b95d..6806369 100644
--- a/ui/single/resources-cfg.stderr
+++ b/ui/single/resources-cfg.stderr
@@ -39,81 +39,81 @@ error[E0609]: no field `s3` on type `initResources<'_>`
= note: available fields are: `__marker__`
error[E0609]: no field `o2` on type `idleResources<'_>`
- --> $DIR/resources-cfg.rs:54:21
+ --> $DIR/resources-cfg.rs:56:21
|
-54 | c.resources.o2;
+56 | c.resources.o2;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `o4` on type `idleResources<'_>`
- --> $DIR/resources-cfg.rs:55:21
+ --> $DIR/resources-cfg.rs:57:21
|
-55 | c.resources.o4;
+57 | c.resources.o4;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s1` on type `idleResources<'_>`
- --> $DIR/resources-cfg.rs:56:21
+ --> $DIR/resources-cfg.rs:58:21
|
-56 | c.resources.s1;
+58 | c.resources.s1;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s3` on type `idleResources<'_>`
- --> $DIR/resources-cfg.rs:57:21
+ --> $DIR/resources-cfg.rs:59:21
|
-57 | c.resources.s3;
+59 | c.resources.s3;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `o3` on type `uart0Resources<'_>`
- --> $DIR/resources-cfg.rs:64:21
+ --> $DIR/resources-cfg.rs:66:21
|
-64 | c.resources.o3;
+66 | c.resources.o3;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s1` on type `uart0Resources<'_>`
- --> $DIR/resources-cfg.rs:65:21
+ --> $DIR/resources-cfg.rs:67:21
|
-65 | c.resources.s1;
+67 | c.resources.s1;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s2` on type `uart0Resources<'_>`
- --> $DIR/resources-cfg.rs:66:21
+ --> $DIR/resources-cfg.rs:68:21
|
-66 | c.resources.s2;
+68 | c.resources.s2;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s3` on type `uart0Resources<'_>`
- --> $DIR/resources-cfg.rs:67:21
+ --> $DIR/resources-cfg.rs:69:21
|
-67 | c.resources.s3;
+69 | c.resources.s3;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `s2` on type `uart1Resources<'_>`
- --> $DIR/resources-cfg.rs:72:21
+ --> $DIR/resources-cfg.rs:74:21
|
-72 | c.resources.s2;
+74 | c.resources.s2;
| ^^ unknown field
|
= note: available fields are: `__marker__`
error[E0609]: no field `o5` on type `uart1Resources<'_>`
- --> $DIR/resources-cfg.rs:73:21
+ --> $DIR/resources-cfg.rs:75:21
|
-73 | c.resources.o5;
+75 | c.resources.o5;
| ^^ unknown field
|
= note: available fields are: `__marker__`
diff --git a/ui/single/task-priority-too-high.rs b/ui/single/task-priority-too-high.rs
index 539c3f5..62e531d 100644
--- a/ui/single/task-priority-too-high.rs
+++ b/ui/single/task-priority-too-high.rs
@@ -5,7 +5,9 @@ use rtic::app;
#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
- fn init(_: init::Context) {}
+ fn init(_: init::Context) -> init::LateResources {
+ init::LateResources {}
+ }
#[task(binds = GPIOA, priority = 1)]
fn gpioa(_: gpioa::Context) {}