mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
update examples and tests
This commit is contained in:
parent
88599780e0
commit
89c922079e
10 changed files with 23 additions and 17 deletions
|
|
@ -19,10 +19,12 @@ const APP: () = {
|
|||
static mut Y: Option<NotSend> = None;
|
||||
|
||||
#[init(resources = [Y])]
|
||||
fn init() {
|
||||
fn init() -> init::LateResources {
|
||||
*resources.Y = Some(NotSend { _0: PhantomData });
|
||||
|
||||
X = NotSend { _0: PhantomData };
|
||||
init::LateResources {
|
||||
X: NotSend { _0: PhantomData },
|
||||
}
|
||||
}
|
||||
|
||||
#[idle(resources = [X, Y])]
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ const APP: () = {
|
|||
static Y: u32 = ();
|
||||
|
||||
#[init]
|
||||
fn init() {
|
||||
X = 0;
|
||||
Y = 1;
|
||||
fn init() -> init::LateResources {
|
||||
init::LateResources { X: 0, Y: 1 }
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue