mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
Merge #478
478: book: update outdated required init signature r=korken89 a=tmplt As per the title. The required signature of `#[init]` in the flowing text has not yet been updated for v0.6.0. Co-authored-by: Viktor Sonesten <v@tmplt.dev>
This commit is contained in:
commit
426662b198
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