summaryrefslogtreecommitdiff
path: root/examples/late-resources.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-10-02 15:11:37 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-10-02 15:11:37 +0200
commitc184f91e3c3993dacbd8425019cde6a3607478bc (patch)
treecf289fec71722e42b48a00f6e8c7d8b014fe141e /examples/late-resources.rs
parent2415a640af49666799bb4cd09a40f16853bdd687 (diff)
downloadrtic-c184f91e3c3993dacbd8425019cde6a3607478bc.tar.gz
rtic-c184f91e3c3993dacbd8425019cde6a3607478bc.tar.zst
rtic-c184f91e3c3993dacbd8425019cde6a3607478bc.zip
fix the example
Diffstat (limited to '')
-rw-r--r--examples/late-resources.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/late-resources.rs b/examples/late-resources.rs
index b60c7740..bc386584 100644
--- a/examples/late-resources.rs
+++ b/examples/late-resources.rs
@@ -35,7 +35,7 @@ app! {
idle: {
// Test that late resources can be used in idle
resources: [IP_ADDRESS],
- }
+ },
tasks: {
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 idle() -> ! {
+fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
loop {
rtfm::wfi();
}