mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Fixing test errors
This commit is contained in:
parent
e7f0d9c3e3
commit
9d2598dc07
5 changed files with 37 additions and 31 deletions
|
@ -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]
|
||||
|
|
|
@ -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`.
|
||||
|
|
|
@ -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])]
|
||||
|
|
|
@ -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__`
|
||||
|
|
|
@ -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) {}
|
||||
|
|
Loading…
Reference in a new issue