mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
50 lines
745 B
Rust
50 lines
745 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 {}
|
|
}
|
|
|
|
#[exception]
|
|
fn SVCall(_: SVCall::Context) {
|
|
#[cfg(never)]
|
|
static mut FOO: u32 = 0;
|
|
|
|
FOO;
|
|
}
|
|
|
|
#[interrupt]
|
|
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();
|
|
}
|
|
};
|