mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
(en) update the text related to late resources
cc @burrbull
This commit is contained in:
parent
89c922079e
commit
1e9058cab2
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ runtime initialized resources as *late resources*. Late resources are useful for
|
||||||
interrupt and exception handlers.
|
interrupt and exception handlers.
|
||||||
|
|
||||||
Late resources are declared like normal resources but that are given an initial
|
Late resources are declared like normal resources but that are given an initial
|
||||||
value of `()` (the unit value). Late resources must be initialized at the end of
|
value of `()` (the unit value). `init` must return the initial values of all
|
||||||
the `init` function using plain assignments (e.g. `FOO = 1`).
|
late resources packed in a `struct` of type `init::LateResources`.
|
||||||
|
|
||||||
The example below uses late resources to stablish a lockless, one-way channel
|
The example below uses late resources to stablish a lockless, one-way channel
|
||||||
between the `UART0` interrupt handler and the `idle` function. A single producer
|
between the `UART0` interrupt handler and the `idle` function. A single producer
|
||||||
|
|
Loading…
Reference in a new issue