mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
timer as future
This commit is contained in:
parent
d7ca3efd03
commit
0751161648
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue