mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +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
21
rtic-macros/ui/local-collision.rs
Normal file
21
rtic-macros/ui/local-collision.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#![no_main]
|
||||
|
||||
#[rtic_macros::mock_app(device = mock)]
|
||||
mod app {
|
||||
#[shared]
|
||||
struct Shared {}
|
||||
|
||||
#[local]
|
||||
struct Local {
|
||||
a: u32,
|
||||
}
|
||||
|
||||
#[task(local = [a])]
|
||||
async fn foo(_: foo::Context) {}
|
||||
|
||||
#[task(local = [a: u8 = 3])]
|
||||
async fn bar(_: bar::Context) {}
|
||||
|
||||
#[init]
|
||||
fn init(_: init::Context) -> (Shared, Local) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue