diff options
Diffstat (limited to 'ui/single/locals-cfg.rs')
| -rw-r--r-- | ui/single/locals-cfg.rs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ui/single/locals-cfg.rs b/ui/single/locals-cfg.rs new file mode 100644 index 0000000..45a7a91 --- /dev/null +++ b/ui/single/locals-cfg.rs @@ -0,0 +1,53 @@ +#![no_main] +use panic_halt as _; + +#[rtic::app(device = lm3s6965)] +mod app { + #[init] + fn init(_: init::Context) -> init::LateResources { + #[cfg(never)] + static mut FOO: u32 = 0; + + FOO; + + init::LateResources {} + } + + #[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; + } + + extern "C" { + fn UART1(); + } +} |
