aboutsummaryrefslogtreecommitdiff
path: root/examples/t-schedule-core-stable.rs
blob: c2a8fdb54a5992746e548accb40148d51ddf9739 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! [compile-pass] Check `schedule` code generation

#![deny(unsafe_code)]
#![deny(warnings)]
#![no_main]
#![no_std]

use panic_halt as _;

#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
mod app {
    #[init]
    fn init(c: init::Context) -> init::LateResources {
        let _c: rtic::Peripherals = c.core;

        init::LateResources {}
    }

    #[task]
    fn some_task(_: some_task::Context) {}

    // RTIC requires that unused interrupts are declared in an extern block when
    // using software tasks; these free interrupts will be used to dispatch the
    // software tasks.
    extern "C" {
        fn SSI0();
    }
}