mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 13:55:23 +01:00
extern task
This commit is contained in:
parent
d11b2ddd35
commit
96cd625223
7 changed files with 125 additions and 31 deletions
|
|
@ -36,7 +36,6 @@ mod app {
|
|||
|
||||
This works also for ram functions, see examples/ramfunc.rs
|
||||
|
||||
|
||||
## Module instead of Const
|
||||
|
||||
With the support of attributes on modules the `const APP` workaround is not needed.
|
||||
|
|
@ -125,3 +124,13 @@ struct whateveryouwant {
|
|||
```
|
||||
|
||||
would work equally well.
|
||||
|
||||
---
|
||||
|
||||
## Additions
|
||||
|
||||
### Extern tasks
|
||||
|
||||
Both software and hardware tasks can now be defined external to the `mod app`. Previously this was possible only by implementing a trampoline calling out the task implementation.
|
||||
|
||||
See examples `examples/extern_binds.rs` and `examples/extern_spawn.rs`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue