aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 54bba8ae..cd8677a9 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 bb558fa6..dc104a69 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 df7ac806..bcb71208 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 c47b95d4..68063693 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 539c3f5d..62e531d8 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) {}