2020-10-07 15:17:00 +02:00
|
|
|
//! [compile-pass] Check `schedule` code generation
|
|
|
|
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
#![deny(warnings)]
|
|
|
|
#![no_main]
|
|
|
|
#![no_std]
|
|
|
|
|
2021-03-03 08:53:03 +01:00
|
|
|
use panic_semihosting as _;
|
2020-10-07 15:17:00 +02:00
|
|
|
|
2021-02-20 19:22:45 +01:00
|
|
|
#[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
|
2020-10-07 15:17:00 +02:00
|
|
|
mod app {
|
|
|
|
#[init]
|
2021-02-20 19:22:45 +01:00
|
|
|
fn init(c: init::Context) -> (init::LateResources, init::Monotonics) {
|
|
|
|
let _c: cortex_m::Peripherals = c.core;
|
2020-10-07 15:17:00 +02:00
|
|
|
|
2021-02-20 19:22:45 +01:00
|
|
|
(init::LateResources {}, init::Monotonics())
|
2020-10-07 15:17:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#[task]
|
|
|
|
fn some_task(_: some_task::Context) {}
|
|
|
|
}
|