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]