aboutsummaryrefslogtreecommitdiff
path: root/examples/periodic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/periodic.rs')
-rw-r--r--examples/periodic.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/periodic.rs b/examples/periodic.rs
index eedf720..3ff9c90 100644
--- a/examples/periodic.rs
+++ b/examples/periodic.rs
@@ -8,7 +8,7 @@
use panic_semihosting as _;
// NOTE: does NOT work on QEMU!
-#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0])]
mod app {
use cortex_m_semihosting::hprintln;
use rtic::cyccnt::{Instant, U32Ext};
@@ -31,11 +31,4 @@ mod app {
foo::schedule(cx.scheduled + PERIOD.cycles()).unwrap();
}
-
- // 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();
- }
}