From 210197d07955e760c031e05d1cc79689290335dc Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Tue, 23 Feb 2021 19:29:15 +0100 Subject: Remove flags, updates UI tests --- ui/single/locals-cfg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/single/locals-cfg.rs') diff --git a/ui/single/locals-cfg.rs b/ui/single/locals-cfg.rs index 3bfdaa1..72e2aca 100644 --- a/ui/single/locals-cfg.rs +++ b/ui/single/locals-cfg.rs @@ -4,13 +4,13 @@ use panic_halt as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { #[init] - fn init(_: init::Context) -> init::LateResources { + fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { #[cfg(never)] static mut FOO: u32 = 0; FOO; - init::LateResources {} + (init::LateResources {}, init::Monotonics()) } #[idle] -- cgit v1.2.3 From a5795a8f45f73099d88817fc8eb6c265689b862e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Wed, 3 Mar 2021 08:55:19 +0100 Subject: Remove keyword single for all tests --- ui/single/locals-cfg.rs | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 ui/single/locals-cfg.rs (limited to 'ui/single/locals-cfg.rs') diff --git a/ui/single/locals-cfg.rs b/ui/single/locals-cfg.rs deleted file mode 100644 index 72e2aca..0000000 --- a/ui/single/locals-cfg.rs +++ /dev/null @@ -1,49 +0,0 @@ -#![no_main] -use panic_halt as _; - -#[rtic::app(device = lm3s6965, dispatchers = [SSI0])] -mod app { - #[init] - fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { - #[cfg(never)] - static mut FOO: u32 = 0; - - FOO; - - (init::LateResources {}, init::Monotonics()) - } - - #[idle] - fn idle(_: idle::Context) -> ! { - #[cfg(never)] - static mut FOO: u32 = 0; - - FOO; - - loop {} - } - - #[task(binds = SVCall)] - fn svcall(_: svcall::Context) { - #[cfg(never)] - static mut FOO: u32 = 0; - - FOO; - } - - #[task(binds = UART0)] - fn uart0(_: uart0::Context) { - #[cfg(never)] - static mut FOO: u32 = 0; - - FOO; - } - - #[task] - fn foo(_: foo::Context) { - #[cfg(never)] - static mut FOO: u32 = 0; - - FOO; - } -} -- cgit v1.2.3