mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +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.
|
||||
|
||||
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
|
||||
the `init` function using plain assignments (e.g. `FOO = 1`).
|
||||
value of `()` (the unit value). `init` must return the initial values of all
|
||||
late resources packed in a `struct` of type `init::LateResources`.
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue