Skip to content

Commit

Permalink
Book: Restore missing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
AfoHT authored and korken89 committed Oct 4, 2023
1 parent 8824202 commit bedaae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion book/en/src/by-example/app_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
An RTIC application requires an `init` task setting up the system. The corresponding `init` function must have the
signature `fn(init::Context) -> (Shared, Local)`, where `Shared` and `Local` are resource structures defined by the user.

The `init` task executes after system reset, [after an optionally defined `pre-init` code section][pre-init] and an always occurring internal RTIC initialization. [pre-init]: https://docs.rs/cortex-m-rt/latest/cortex_m_rt/attr.pre_init.html
The `init` task executes after system reset, [after an optionally defined `pre-init` code section][pre-init] and an always occurring internal RTIC initialization.
[pre-init]: https://docs.rs/cortex-m-rt/latest/cortex_m_rt/attr.pre_init.html

The `init` and optional `pre-init` tasks runs *with interrupts disabled* and have exclusive access to Cortex-M (the `bare_metal::CriticalSection` token is available as `cs`).

Expand Down

0 comments on commit bedaae9

Please sign in to comment.