From 374a1c2add280ba0300474998e40f3712f40e9eb Mon Sep 17 00:00:00 2001 From: Viktor Sonesten Date: Wed, 21 Apr 2021 15:00:53 +0200 Subject: [PATCH] book: update outdated required init signature --- book/en/src/by-example/app.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md index 6a01193641..50f2842cac 100644 --- a/book/en/src/by-example/app.md +++ b/book/en/src/by-example/app.md @@ -23,9 +23,8 @@ to use the [`cortex_m_rt::entry`] attribute. ## `init` Within the `app` module the attribute expects to find an initialization -function marked with the `init` attribute. This function must have signature -`fn(init::Context) [-> init::LateResources]` (the return type is not always -required). +function marked with the `init` attribute. This function must have +signature `fn(init::Context) -> (init::LateResources, init::Monotonics)`. This initialization function will be the first part of the application to run. The `init` function will run *with interrupts disabled* and has exclusive access