diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-12 15:12:39 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-12 15:13:41 +0100 |
| commit | 1e9058cab2d29979da9856a8198884b50176ccbc (patch) | |
| tree | f4451237e6f2ace3f34b336df119841da43a9880 /book | |
| parent | 89c922079eaefc748febdb62aeccfff598a07c69 (diff) | |
(en) update the text related to late resources
cc @burrbull
Diffstat (limited to 'book')
| -rw-r--r-- | book/en/src/by-example/resources.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/by-example/resources.md b/book/en/src/by-example/resources.md index efdeaa2..46d04a7 100644 --- a/book/en/src/by-example/resources.md +++ b/book/en/src/by-example/resources.md @@ -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 |
