From 79b62797f549a71531bf5ede39cc6695871b7251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Wed, 22 Apr 2020 11:48:36 +0000 Subject: Update the test suite to use mod instead of const Changes MSRV to 1.42, failing tests updated to match 1.42. --- ui/single/resources-cfg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/single/resources-cfg.rs') diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs index df7ac80..fd03f58 100644 --- a/ui/single/resources-cfg.rs +++ b/ui/single/resources-cfg.rs @@ -1,7 +1,7 @@ #![no_main] #[rtic::app(device = lm3s6965)] -const APP: () = { +mod APP { struct Resources { #[cfg(never)] #[init(0)] @@ -72,4 +72,4 @@ const APP: () = { c.resources.s2; c.resources.o5; } -}; +} -- cgit v1.2.3 From 5cfd9b92384a6e2d352e35de9da1b7a2b53cc2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Tue, 19 May 2020 18:00:13 +0000 Subject: Modules using lower-case in examples --- ui/single/resources-cfg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/single/resources-cfg.rs') diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs index fd03f58..e41ce42 100644 --- a/ui/single/resources-cfg.rs +++ b/ui/single/resources-cfg.rs @@ -1,7 +1,7 @@ #![no_main] #[rtic::app(device = lm3s6965)] -mod APP { +mod app { struct Resources { #[cfg(never)] #[init(0)] -- cgit v1.2.3 From adff844b8c09e83b4a69fc5b7ac9bd133f09dbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Thu, 4 Jun 2020 15:33:35 +0000 Subject: Add #[resources] to ui/single --- ui/single/resources-cfg.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/single/resources-cfg.rs') diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs index e41ce42..163927e 100644 --- a/ui/single/resources-cfg.rs +++ b/ui/single/resources-cfg.rs @@ -2,6 +2,7 @@ #[rtic::app(device = lm3s6965)] mod app { + #[resources] struct Resources { #[cfg(never)] #[init(0)] -- cgit v1.2.3 From d7bd8c838a5c4e1ae6d28fa60e5e5969acbe1db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Mon, 8 Jun 2020 08:06:09 +0000 Subject: Import panic_halt so semihosting is not attempted ARMv6 would otherwise differ in output compared to ARMv7 --- ui/single/resources-cfg.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/single/resources-cfg.rs') diff --git a/ui/single/resources-cfg.rs b/ui/single/resources-cfg.rs index 163927e..f2569e9 100644 --- a/ui/single/resources-cfg.rs +++ b/ui/single/resources-cfg.rs @@ -1,4 +1,5 @@ #![no_main] +use panic_halt as _; #[rtic::app(device = lm3s6965)] mod app { -- cgit v1.2.3