From 0751161648e70ff7b7d8155c54bd45a3784cd2da Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Mon, 26 Oct 2020 11:01:47 +0100 Subject: [PATCH] timer as future --- examples/async_systick.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/async_systick.rs b/examples/async_systick.rs index 1667dbc9e0..132a94c591 100644 --- a/examples/async_systick.rs +++ b/examples/async_systick.rs @@ -143,9 +143,10 @@ mod app { // } // This the actual RTIC task, binds to systic. - #[task(binds = SysTick, resources = [], priority = 2)] + #[task(binds = SysTick, resources = [syst], priority = 2)] fn systic(mut cx: systic::Context) { hprintln!("systic interrupt").ok(); + cx.resources.syst.lock(|syst| syst.disable_interrupt()); crate::app::foo::spawn(); // this should be from a Queue later } }