mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 13:55:23 +01:00
Move rtic macros to repo root, tune xtask
This commit is contained in:
parent
4124fbdd61
commit
9e445b3583
134 changed files with 31 additions and 29 deletions
17
rtic-macros/ui/task-init.rs
Normal file
17
rtic-macros/ui/task-init.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#![no_main]
|
||||
|
||||
#[rtic_macros::mock_app(device = mock)]
|
||||
mod app {
|
||||
#[shared]
|
||||
struct Shared {}
|
||||
|
||||
#[local]
|
||||
struct Local {}
|
||||
|
||||
#[init]
|
||||
fn foo(_: foo::Context) -> (Shared, Local) {}
|
||||
|
||||
// name collides with `#[idle]` function
|
||||
#[task]
|
||||
async fn foo(_: foo::Context) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue