rtic/ui/single/locals-cfg.rs
Jorge Aparicio 4e51bb68b9 RFC #207
2019-06-20 06:19:59 +02:00

50 lines
766 B
Rust

#![no_main]
#[rtfm::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[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();
}
};