From 1c244a995d54332649c1643aa0a3178f169406e4 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Fri, 23 Oct 2020 10:35:56 +0200 Subject: move dispatchers to app argument --- examples/not-sync.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'examples/not-sync.rs') diff --git a/examples/not-sync.rs b/examples/not-sync.rs index d2616ee..21c316a 100644 --- a/examples/not-sync.rs +++ b/examples/not-sync.rs @@ -12,7 +12,7 @@ pub struct NotSync { _0: PhantomData<*const ()>, } -#[rtic::app(device = lm3s6965)] +#[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { use super::NotSync; use core::marker::PhantomData; @@ -40,11 +40,4 @@ mod app { fn bar(c: bar::Context) { let _: &NotSync = c.resources.shared; } - - // 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(); - } } -- cgit v1.2.3