mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
21 lines
464 B
Rust
21 lines
464 B
Rust
//! [compile-pass] Check `schedule` code generation
|
|
|
|
#![deny(unsafe_code)]
|
|
#![deny(warnings)]
|
|
#![no_main]
|
|
#![no_std]
|
|
|
|
use panic_semihosting as _;
|
|
|
|
#[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
|
|
mod app {
|
|
#[init]
|
|
fn init(c: init::Context) -> (init::LateResources, init::Monotonics) {
|
|
let _c: cortex_m::Peripherals = c.core;
|
|
|
|
(init::LateResources {}, init::Monotonics())
|
|
}
|
|
|
|
#[task]
|
|
fn some_task(_: some_task::Context) {}
|
|
}
|