From 05feb7b018817f88123900c9196e830d51608a5f Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 23 Jul 2017 20:51:52 -0500 Subject: update examples --- examples/full-syntax.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'examples/full-syntax.rs') diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs index d146678..7ac42e3 100644 --- a/examples/full-syntax.rs +++ b/examples/full-syntax.rs @@ -25,9 +25,6 @@ app! { }, idle: { - locals: { - static COUNTER: u32 = 0; - }, path: idle_, // this is a path to the "idle" function resources: [OWNED, SHARED], }, @@ -48,10 +45,8 @@ app! { fn init_(_p: init::Peripherals, _r: init::Resources) {} -fn idle_(t: &mut Threshold, l: &mut idle::Locals, mut r: idle::Resources) -> ! { +fn idle_(t: &mut Threshold, mut r: idle::Resources) -> ! { loop { - *l.COUNTER += 1; - **r.OWNED != **r.OWNED; if **r.OWNED { -- cgit v1.2.3