Migrating a project from RTIC
v2.0.0 involves the following steps:
#![type_alias_impl_trait]and Rust Nightly.
- Migrating from the monotonics included in
- Software tasks are now required to be
async, and using them correctly.
- Understanding and using data types provided by
For a detailed description of the changes, refer to the subchapters.
If you wish to see a code example of changes required, you can check out the full example migration page.
#![type_alias_impl_trait]to your crate, and use
- Instead of
spawn_at, you now use the
delay_until(and related) with impls provided by
- Software tasks must be
async fns now. Not returning from a task is allowed so long as there is an
awaitin the task. You can still
awaitaccess to a shared resource, and
rtic-channelto communicate between tasks instead of
spawn-ing new ones.