use tuple struct syntax for Monotonics everywhere

This commit is contained in:
Jorge Aparicio 2021-07-21 10:14:00 +02:00
parent 5f7dc0b903
commit 18880406cb
9 changed files with 10 additions and 10 deletions

View file

@ -226,7 +226,7 @@ v0.6.0 code:
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
let buffer: &'static mut [u8; 1024] = cx.local.buffer;
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
```
@ -263,7 +263,7 @@ mod app {
fn init(_: init::Context) -> (MySharedResources, MyLocalResources, init::Monotonics) {
rtic::pend(Interrupt::UART0);
(MySharedResources, MyLocalResources, init::Monotonics {})
(MySharedResources, MyLocalResources, init::Monotonics())
}
// [more code]

View file

@ -16,6 +16,6 @@ mod app {
#[init]
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
}

View file

@ -21,7 +21,7 @@ mod app {
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
foo::spawn(1, 2).unwrap();
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task()]

View file

@ -21,7 +21,7 @@ mod app {
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
foo::spawn(1, 2).unwrap();
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task]

View file

@ -18,7 +18,7 @@ fn analyze() {
#[init]
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task(priority = 1)]

View file

@ -10,7 +10,7 @@ mod app {
#[init]
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task(binds = NonMaskableInt)]

View file

@ -10,7 +10,7 @@ mod app {
#[init]
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task]

View file

@ -10,7 +10,7 @@ mod app {
#[init]
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task(binds = UART0)]

View file

@ -10,7 +10,7 @@ mod app {
#[init]
fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
(Shared {}, Local {}, init::Monotonics {})
(Shared {}, Local {}, init::Monotonics())
}
#[task(binds = GPIOA, priority = 1)]