aboutsummaryrefslogtreecommitdiff
path: root/ui/locals-cfg.rs
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@grepit.se>2021-03-03 08:55:19 +0100
committerHenrik Tjäder <henrik@grepit.se>2021-03-03 08:55:19 +0100
commita5795a8f45f73099d88817fc8eb6c265689b862e (patch)
tree29cfcd9a9b10764ddf87259cc6212ad4e2dfd9bd /ui/locals-cfg.rs
parent612efaf0c436489e1cf09c2e87b329a7318f71b4 (diff)
Remove keyword single for all tests
Diffstat (limited to 'ui/locals-cfg.rs')
-rw-r--r--ui/locals-cfg.rs49
1 files changed, 49 insertions, 0 deletions
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;
+ }
+}