diff options
| author | Per Lindgren <per.lindgren@ltu.se> | 2020-10-23 10:35:56 +0200 |
|---|---|---|
| committer | Per Lindgren <per.lindgren@ltu.se> | 2020-10-23 23:58:09 +0200 |
| commit | 1c244a995d54332649c1643aa0a3178f169406e4 (patch) | |
| tree | ef7676e7439ccf9407fcde998a654d9700f20524 /examples/spawn2.rs | |
| parent | 86699039e99229049ee3c739eaf860acc70a1bf7 (diff) | |
move dispatchers to app argument
Diffstat (limited to 'examples/spawn2.rs')
| -rw-r--r-- | examples/spawn2.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/spawn2.rs b/examples/spawn2.rs index 070223b..c485b92 100644 --- a/examples/spawn2.rs +++ b/examples/spawn2.rs @@ -7,7 +7,7 @@ use panic_semihosting as _; -#[rtic::app(device = lm3s6965)] +#[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { use cortex_m_semihosting::{debug, hprintln}; @@ -32,11 +32,4 @@ mod app { hprintln!("foo2 {}", x).unwrap(); foo::spawn(x, 0).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(); - } } |
