mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Merge #757
757: Monotonics migration example: fix Systick start function r=datdenkikniet a=mattico Co-authored-by: Matt Ickstadt <mattico8@gmail.com>
This commit is contained in:
commit
01fa3f2e72
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ _Note_: This diff may not be 100% accurate, but it displays the important change
|
|||
|
||||
- let mono = Systick::new(cx.core.SYST, 36_000_000);
|
||||
+ let mono_token = rtic_monotonics::create_systick_token!();
|
||||
+ let mono = Systick::new(cx.core.SYST, 36_000_000, mono_token);
|
||||
+ let mono = Systick::start(cx.core.SYST, 36_000_000, mono_token);
|
||||
|
||||
let _clocks = rcc
|
||||
.cfgr
|
||||
|
@ -166,4 +166,4 @@ _Note_: This diff may not be 100% accurate, but it displays the important change
|
|||
+ }
|
||||
+ }
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue