mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +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();
|
|
}
|
|
};
|