aboutsummaryrefslogtreecommitdiff
path: root/examples/schedule.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-08-21 10:17:27 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-08-21 10:17:27 +0200
commit07b2b4d83078d0fd260d5f0812e8d5a34d02b793 (patch)
treedba2a8e8316e8cd868ccb7b46a80d63c5f61a224 /examples/schedule.rs
parent0e146f8d1142672725b6abb38478f503a9261c80 (diff)
downloadrtic-07b2b4d83078d0fd260d5f0812e8d5a34d02b793.tar.gz
rtic-07b2b4d83078d0fd260d5f0812e8d5a34d02b793.tar.zst
rtic-07b2b4d83078d0fd260d5f0812e8d5a34d02b793.zip
doc up
Diffstat (limited to 'examples/schedule.rs')
-rw-r--r--examples/schedule.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs
index 1cf2b1ea..27d3bd1f 100644
--- a/examples/schedule.rs
+++ b/examples/schedule.rs
@@ -13,16 +13,16 @@ use rtfm::cyccnt::{Instant, U32Ext as _};
#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
const APP: () = {
#[init(schedule = [foo, bar])]
- fn init(c: init::Context) {
+ fn init(cx: init::Context) {
let now = Instant::now();
hprintln!("init @ {:?}", now).unwrap();
// Schedule `foo` to run 8e6 cycles (clock cycles) in the future
- c.schedule.foo(now + 8_000_000.cycles()).unwrap();
+ cx.schedule.foo(now + 8_000_000.cycles()).unwrap();
// Schedule `bar` to run 4e6 cycles in the future
- c.schedule.bar(now + 4_000_000.cycles()).unwrap();
+ cx.schedule.bar(now + 4_000_000.cycles()).unwrap();
}
#[task]