Monotonics migration example: fix Systick start function

This commit is contained in:
Matt Ickstadt 2023-05-26 10:03:46 -05:00 committed by GitHub
parent 1e4977152a
commit 050c2cfc34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = Systick::new(cx.core.SYST, 36_000_000);
+ let mono_token = rtic_monotonics::create_systick_token!(); + 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 let _clocks = rcc
.cfgr .cfgr
@ -166,4 +166,4 @@ _Note_: This diff may not be 100% accurate, but it displays the important change
+ } + }
+ } + }
} }
``` ```