From 91962d21fea9be901125883f2eacbcc426873103 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 12 Feb 2019 11:04:54 +0100 Subject: (ru) fix includes in the preface --- book/ru/src/preface.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'book') diff --git a/book/ru/src/preface.md b/book/ru/src/preface.md index ee01d10..0f9bd67 100644 --- a/book/ru/src/preface.md +++ b/book/ru/src/preface.md @@ -7,6 +7,6 @@ Эта книга содержит документацию уровня пользователя фреймворком Real Time For the Masses (RTFM). Описание API можно найти [здесь](../api/rtfm/index.html). -{{#include ../..ADME_RU.md:5:54}} +{{#include README_RU.md:5:44}} -{{#include ../..ADME_RU.md:60:}} +{{#include README_RU.md:50:}} -- cgit v1.2.3 From 1e9058cab2d29979da9856a8198884b50176ccbc Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 12 Feb 2019 15:12:39 +0100 Subject: (en) update the text related to late resources cc @burrbull --- book/en/src/by-example/resources.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'book') 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 -- cgit v1.2.3