mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
use tuple struct syntax for Monotonics everywhere
This commit is contained in:
parent
5f7dc0b903
commit
18880406cb
9 changed files with 10 additions and 10 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue