diff options
| author | Daniel Carosone <Daniel.Carosone@gmail.com> | 2020-10-13 10:45:03 +1100 |
|---|---|---|
| committer | Daniel Carosone <Daniel.Carosone@gmail.com> | 2020-10-13 10:45:03 +1100 |
| commit | efe6b516fb4def3b704216362155633c0834dcc7 (patch) | |
| tree | b695a3ba77a6d8e3d1b3bd9c0a1c86f947e958c2 /book/en/src/by-example/app.md | |
| parent | b8665a2f312d325a9963075614a6c406e9fe3882 (diff) | |
device path must be absolute; clarify
Diffstat (limited to 'book/en/src/by-example/app.md')
| -rw-r--r-- | book/en/src/by-example/app.md | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md index ab6f452..c4f18c7 100644 --- a/book/en/src/by-example/app.md +++ b/book/en/src/by-example/app.md @@ -7,11 +7,14 @@ This is the smallest possible RTIC application: ``` All RTIC applications use the [`app`] attribute (`#[app(..)]`). This attribute -must be applied to a `mod`-item. The `app` attribute has -a mandatory `device` argument that takes a *path* as a value. This path must -point to a *peripheral access crate* (PAC) generated using [`svd2rust`] -**v0.14.x** or newer. The `app` attribute will expand into a suitable entry -point so it's not required to use the [`cortex_m_rt::entry`] attribute. +must be applied to a `mod`-item. The `app` attribute has a mandatory `device` +argument that takes a *path* as a value. This must be a full path pointing to a +*peripheral access crate* (PAC) generated using [`svd2rust`] **v0.14.x** or +newer. More details can be found in the [Starting a new project](./new.md) +section. + +The `app` attribute will expand into a suitable entry point so it's not required +to use the [`cortex_m_rt::entry`] attribute. [`app`]: ../../../api/cortex_m_rtic_macros/attr.app.html [`svd2rust`]: https://crates.io/crates/svd2rust |
