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/locals-cfg.rs | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ui/locals-cfg.rs (limited to 'ui/locals-cfg.rs') diff --git a/ui/locals-cfg.rs b/ui/locals-cfg.rs new file mode 100644 index 0000000..72e2aca --- /dev/null +++ b/ui/locals-cfg.rs @@ -0,0 +1,49 @@ +#![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 From 5e5fbf0ee9b254ec7d61f3f820168f11cb6a2c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Wed, 3 Mar 2021 09:11:24 +0100 Subject: Fix the UI tests, remove panic_halt --- ui/locals-cfg.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/locals-cfg.rs') diff --git a/ui/locals-cfg.rs b/ui/locals-cfg.rs index 72e2aca..170d302 100644 --- a/ui/locals-cfg.rs +++ b/ui/locals-cfg.rs @@ -1,5 +1,6 @@ #![no_main] -use panic_halt as _; + +use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { -- cgit v1.2.3