mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +01:00
book: update outdated required init signature
This commit is contained in:
parent
43c5ad79c2
commit
374a1c2add
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,8 @@ to use the [`cortex_m_rt::entry`] attribute.
|
||||||
## `init`
|
## `init`
|
||||||
|
|
||||||
Within the `app` module the attribute expects to find an initialization
|
Within the `app` module the attribute expects to find an initialization
|
||||||
function marked with the `init` attribute. This function must have signature
|
function marked with the `init` attribute. This function must have
|
||||||
`fn(init::Context) [-> init::LateResources]` (the return type is not always
|
signature `fn(init::Context) -> (init::LateResources, init::Monotonics)`.
|
||||||
required).
|
|
||||||
|
|
||||||
This initialization function will be the first part of the application to run.
|
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
|
The `init` function will run *with interrupts disabled* and has exclusive access
|
||||||
|
|
Loading…
Reference in a new issue