2018-12-16 18:37:36 +01:00
|
|
|
#![no_main]
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
#[rtfm::app(device = lm3s6965)]
|
2018-12-16 18:37:36 +01:00
|
|
|
const APP: () = {
|
|
|
|
#[init]
|
2019-04-21 20:20:15 +02:00
|
|
|
fn init(_: init::Context) {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2018-12-16 18:37:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[idle]
|
2019-04-21 20:20:15 +02:00
|
|
|
fn idle(_: idle::Context) -> ! {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2018-12-16 18:37:36 +01:00
|
|
|
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[exception]
|
2019-04-21 20:20:15 +02:00
|
|
|
fn SVCall(_: SVCall::Context) {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2018-12-16 18:37:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[interrupt]
|
2019-04-21 20:20:15 +02:00
|
|
|
fn UART0(_: UART0::Context) {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2018-12-16 18:37:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[task]
|
2019-04-21 20:20:15 +02:00
|
|
|
fn foo(_: foo::Context) {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2018-12-16 18:37:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
fn UART1();
|
|
|
|
}
|
|
|
|
};
|