rtic/examples
Russell Sim 7266ffe3a6
Update example to use better initial value
The example above this in the documentation states

```
        // semantically, the monotonic timer is frozen at time "zero" during `init`
        // NOTE do *not* call `Instant::now` in this context; it will return a nonsense value
        let now = cx.start; // the start time of the system
```

It results in weird scheduling issues, but still eventually works.  `cx.start` is much more reliable.

Relates to https://github.com/rtfm-rs/cortex-m-rtfm/issues/196
2020-05-26 07:33:18 +02:00
..
baseline.rs more monotonic timer docs 2019-10-15 18:44:49 -05:00
binds.rs RFC #207 2019-06-20 06:19:59 +02:00
capacity.rs RFC #207 2019-06-20 06:19:59 +02:00
cfg.rs doc up 2019-08-21 10:17:27 +02:00
destructure.rs Added struct de-structure-ing example in tips & tricks 2019-11-07 14:12:16 +01:00
generics.rs doc up 2019-08-21 10:17:27 +02:00
hardware.rs doc up 2019-08-21 10:17:27 +02:00
idle.rs rtfm-syntax refactor + heterogeneous multi-core support 2019-06-13 23:56:59 +02:00
init.rs doc up 2019-08-21 10:17:27 +02:00
late.rs doc up 2019-08-21 10:17:27 +02:00
lock.rs implement RFC #212 2019-07-10 22:42:44 +02:00
message.rs rtfm-syntax refactor + heterogeneous multi-core support 2019-06-13 23:56:59 +02:00
not-send.rs implement RFC #212 2019-07-10 22:42:44 +02:00
not-sync.rs doc up 2019-08-21 10:17:27 +02:00
only-shared-access.rs doc up 2019-08-21 10:17:27 +02:00
periodic.rs Update example to use better initial value 2020-05-26 07:33:18 +02:00
pool.rs RFC #207 2019-06-20 06:19:59 +02:00
preempt.rs fix preempt example 2019-08-21 10:53:13 +02:00
ramfunc.rs rtfm-syntax refactor + heterogeneous multi-core support 2019-06-13 23:56:59 +02:00
resource.rs doc up 2019-08-21 10:17:27 +02:00
schedule.rs Merge #294 2020-01-24 15:45:14 +00:00
shared-with-init.rs implement RFC #212 2019-07-10 22:42:44 +02:00
smallest.rs doc up 2019-08-21 10:17:27 +02:00
t-binds.rs RFC #207 2019-06-20 06:19:59 +02:00
t-cfg-resources.rs Retain cfg-attributes on resources 2020-04-22 09:26:13 +00:00
t-cfg.rs implement RFC #212 2019-07-10 22:42:44 +02:00
t-late-not-send.rs implement RFC #212 2019-07-10 22:42:44 +02:00
t-resource.rs implement RFC #212 2019-07-10 22:42:44 +02:00
t-schedule.rs RFC #207 2019-06-20 06:19:59 +02:00
t-spawn.rs RFC #207 2019-06-20 06:19:59 +02:00
task.rs doc up 2019-08-21 10:17:27 +02:00
types.rs doc up 2019-08-21 10:17:27 +02:00