diff options
author | 2020-10-23 10:35:56 +0200 | |
---|---|---|
committer | 2020-10-23 23:58:09 +0200 | |
commit | 1c244a995d54332649c1643aa0a3178f169406e4 (patch) | |
tree | ef7676e7439ccf9407fcde998a654d9700f20524 /examples/types.rs | |
parent | 86699039e99229049ee3c739eaf860acc70a1bf7 (diff) | |
download | rtic-1c244a995d54332649c1643aa0a3178f169406e4.tar.gz rtic-1c244a995d54332649c1643aa0a3178f169406e4.tar.zst rtic-1c244a995d54332649c1643aa0a3178f169406e4.zip |
move dispatchers to app argument
Diffstat (limited to 'examples/types.rs')
-rw-r--r-- | examples/types.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/types.rs b/examples/types.rs index 815d309a..9908dd6b 100644 --- a/examples/types.rs +++ b/examples/types.rs @@ -7,7 +7,7 @@ use panic_semihosting as _; -#[rtic::app(device = lm3s6965, peripherals = true, monotonic = rtic::cyccnt::CYCCNT)] +#[rtic::app(device = lm3s6965, peripherals = true, monotonic = rtic::cyccnt::CYCCNT, dispatchers = [SSI0])] mod app { use cortex_m_semihosting::debug; use rtic::cyccnt; @@ -48,11 +48,4 @@ mod app { let _: &mut u32 = cx.resources.shared; let _: foo::Resources = cx.resources; } - - // 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(); - } } |