rtic/ui/single/locals-cfg.rs

50 lines
811 B
Rust
Raw Permalink Normal View History

#![no_main]
use panic_halt as _;
2020-10-23 10:35:56 +02:00
#[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
2020-05-19 20:00:13 +02:00
mod app {
#[init]
2020-10-01 20:14:07 +02:00
fn init(_: init::Context) -> init::LateResources {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
2020-10-01 20:14:07 +02:00
init::LateResources {}
}
#[idle]
2019-04-21 20:20:15 +02:00
fn idle(_: idle::Context) -> ! {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
loop {}
}
2019-06-20 06:19:59 +02:00
#[task(binds = SVCall)]
fn svcall(_: svcall::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
2019-06-20 06:19:59 +02:00
#[task(binds = UART0)]
fn uart0(_: uart0::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[task]
2019-04-21 20:20:15 +02:00
fn foo(_: foo::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
}