mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
fix the example
This commit is contained in:
parent
2415a640af
commit
c184f91e3c
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ app! {
|
||||||
idle: {
|
idle: {
|
||||||
// Test that late resources can be used in idle
|
// Test that late resources can be used in idle
|
||||||
resources: [IP_ADDRESS],
|
resources: [IP_ADDRESS],
|
||||||
}
|
},
|
||||||
|
|
||||||
tasks: {
|
tasks: {
|
||||||
SYS_TICK: {
|
SYS_TICK: {
|
||||||
|
@ -76,7 +76,7 @@ fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {
|
||||||
|
|
||||||
fn exti0(_t: &mut Threshold, _r: EXTI0::Resources) {}
|
fn exti0(_t: &mut Threshold, _r: EXTI0::Resources) {}
|
||||||
|
|
||||||
fn idle() -> ! {
|
fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
|
||||||
loop {
|
loop {
|
||||||
rtfm::wfi();
|
rtfm::wfi();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue