aboutsummaryrefslogtreecommitdiff
path: root/examples/t-schedule-core-stable.rs
blob: 98d42ce721114352cc6975239c2974270294a3aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! [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) {}
}