(en) update the text related to late resources

cc @burrbull
This commit is contained in:
Jorge Aparicio 2019-02-12 15:12:39 +01:00
parent 89c922079e
commit 1e9058cab2

View file

@ -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