rtic/ui/single/locals-cfg.rs

51 lines
745 B
Rust
Raw Normal View History

#![no_main]
#[rtfm::app(device = lm3s6965)]
const APP: () = {
#[init]
2019-04-21 20:20:15 +02:00
fn init(_: init::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[idle]
2019-04-21 20:20:15 +02:00
fn idle(_: idle::Context) -> ! {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
loop {}
}
#[exception]
2019-04-21 20:20:15 +02:00
fn SVCall(_: SVCall::Context) {
#[cfg(never)]
static mut FOO: u32 = 0;
FOO;
}
#[interrupt]
2019-04-21 20:20:15 +02:00
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;
}
extern "C" {
fn UART1();
}
};