2018-12-16 18:37:36 +01:00
|
|
|
#![no_main]
|
2021-03-03 09:11:24 +01:00
|
|
|
|
|
|
|
use panic_semihosting as _;
|
2018-12-16 18:37:36 +01:00
|
|
|
|
2020-10-23 10:35:56 +02:00
|
|
|
#[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
|
2020-05-19 20:00:13 +02:00
|
|
|
mod app {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[init]
|
2021-02-23 19:29:15 +01:00
|
|
|
fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
|
2018-12-16 18:37:36 +01:00
|
|
|
#[cfg(never)]
|
|
|
|
static mut FOO: u32 = 0;
|
|
|
|
|
2019-06-13 23:56:59 +02:00
|
|
|
FOO;
|
2020-10-01 20:14:07 +02:00
|
|
|
|
2021-02-23 19:29:15 +01:00
|
|
|
(init::LateResources {}, init::Monotonics())
|
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 {}
|
|
|
|
}
|
|
|
|
|
2019-06-20 06:19:59 +02:00
|
|
|
#[task(binds = SVCall)]
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-06-20 06:19:59 +02:00
|
|
|
#[task(binds = UART0)]
|
|
|
|
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
|
|
|
}
|
2020-04-22 13:48:36 +02:00
|
|
|
}
|