aboutsummaryrefslogtreecommitdiff
path: root/examples/cfg-whole-task.rs
diff options
context:
space:
mode:
authorPer Lindgren <per.lindgren@ltu.se>2020-10-23 10:35:56 +0200
committerPer Lindgren <per.lindgren@ltu.se>2020-10-23 23:58:09 +0200
commit1c244a995d54332649c1643aa0a3178f169406e4 (patch)
treeef7676e7439ccf9407fcde998a654d9700f20524 /examples/cfg-whole-task.rs
parent86699039e99229049ee3c739eaf860acc70a1bf7 (diff)
move dispatchers to app argument
Diffstat (limited to 'examples/cfg-whole-task.rs')
-rw-r--r--examples/cfg-whole-task.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/cfg-whole-task.rs b/examples/cfg-whole-task.rs
index 7a7fc48..0676be2 100644
--- a/examples/cfg-whole-task.rs
+++ b/examples/cfg-whole-task.rs
@@ -7,7 +7,7 @@
use panic_semihosting as _;
-#[rtic::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0])]
mod app {
use cortex_m_semihosting::debug;
#[cfg(debug_assertions)]
@@ -83,12 +83,4 @@ mod app {
)
.ok();
}
-
- // 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();
- fn QEI0();
- }
}