diff options
author | 2017-12-09 13:38:41 +0100 | |
---|---|---|
committer | 2017-12-09 17:15:15 +0100 | |
commit | 219e17268018f397ff3c8a41519c8345aeab7f2f (patch) | |
tree | 5022a7640b4eae2174fe37f8f9943335f2fb7a0a /examples/full-syntax.rs | |
parent | 0f5784c2401d4b12004f34345e721598fa21219a (diff) | |
download | rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.gz rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.tar.zst rtic-219e17268018f397ff3c8a41519c8345aeab7f2f.zip |
drop the Static wrapper
Diffstat (limited to '')
-rw-r--r-- | examples/full-syntax.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs index a8f79a72..b84077fb 100644 --- a/examples/full-syntax.rs +++ b/examples/full-syntax.rs @@ -63,22 +63,22 @@ mod main { *r.OWNED != *r.OWNED; if *r.OWNED { - if r.SHARED.claim(t, |shared, _| **shared) { + if r.SHARED.claim(t, |shared, _| *shared) { rtfm::wfi(); } } else { - r.SHARED.claim_mut(t, |shared, _| **shared = !**shared); + r.SHARED.claim_mut(t, |shared, _| *shared = !*shared); } } } } fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) { - **r.ON = !**r.ON; + *r.ON = !*r.ON; - **r.CO_OWNED += 1; + *r.CO_OWNED += 1; } fn tim2(_t: &mut Threshold, r: TIM2::Resources) { - **r.CO_OWNED += 1; + *r.CO_OWNED += 1; } |