diff options
author | 2020-10-15 17:55:00 +0200 | |
---|---|---|
committer | 2020-10-15 17:55:00 +0200 | |
commit | 5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca (patch) | |
tree | ad2e1b0ac81f3ffebe73edcf62b8cc4472eaff13 /examples/t-schedule-core-stable.rs | |
parent | 5b8e6a22ab68e316e11641dedf5b39e20878c7b7 (diff) | |
parent | ee0885063d5b1cc4eddd3918ff425796f6213464 (diff) | |
download | rtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.tar.gz rtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.tar.zst rtic-5ac16f6aae7c4760711b1eef5cbaf1c57c5933ca.zip |
Merge branch 'master' into spawn_experiment
Diffstat (limited to 'examples/t-schedule-core-stable.rs')
-rw-r--r-- | examples/t-schedule-core-stable.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/t-schedule-core-stable.rs b/examples/t-schedule-core-stable.rs new file mode 100644 index 00000000..c2a8fdb5 --- /dev/null +++ b/examples/t-schedule-core-stable.rs @@ -0,0 +1,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(); + } +} |