aboutsummaryrefslogtreecommitdiff
path: root/examples/modules.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-23 20:51:52 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-23 20:51:52 -0500
commit05feb7b018817f88123900c9196e830d51608a5f (patch)
treea54556e201b9728030cd4228537090a6fe7d310a /examples/modules.rs
parentf3b397f460bf06ee843bd429d332bb04768e99d6 (diff)
update examples
Diffstat (limited to 'examples/modules.rs')
-rw-r--r--examples/modules.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/examples/modules.rs b/examples/modules.rs
index 5b23d0e..f938461 100644
--- a/examples/modules.rs
+++ b/examples/modules.rs
@@ -25,9 +25,6 @@ app! {
},
idle: {
- locals: {
- static COUNTER: u32 = 0;
- },
path: main::idle,
resources: [OWNED, SHARED],
},
@@ -51,14 +48,8 @@ mod main {
pub fn init(_p: ::init::Peripherals, _r: ::init::Resources) {}
- pub fn idle(
- t: &mut Threshold,
- l: &mut ::idle::Locals,
- mut r: ::idle::Resources,
- ) -> ! {
+ pub fn idle(t: &mut Threshold, mut r: ::idle::Resources) -> ! {
loop {
- *l.COUNTER += 1;
-
**r.OWNED != **r.OWNED;
if **r.OWNED {