aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2023-05-27 14:59:59 +0000
committerGravatar GitHub <noreply@github.com> 2023-05-27 14:59:59 +0000
commit01fa3f2e72196250e5552b204d2197583c231075 (patch)
tree174093c530f366f88569efbf6dbe493b4fb7db16
parent1e4977152a98e6f87cb75c611bdb9217cd59feb2 (diff)
parent050c2cfc3488de7fa1c55d7b347fe1f1e9c07931 (diff)
downloadrtic-01fa3f2e72196250e5552b204d2197583c231075.tar.gz
rtic-01fa3f2e72196250e5552b204d2197583c231075.tar.zst
rtic-01fa3f2e72196250e5552b204d2197583c231075.zip
Merge #757
757: Monotonics migration example: fix Systick start function r=datdenkikniet a=mattico Co-authored-by: Matt Ickstadt <mattico8@gmail.com>
-rw-r--r--book/en/src/migration_v1_v2/complete_example.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/migration_v1_v2/complete_example.md b/book/en/src/migration_v1_v2/complete_example.md
index 19a746a7..e76fa4d7 100644
--- a/book/en/src/migration_v1_v2/complete_example.md
+++ b/book/en/src/migration_v1_v2/complete_example.md
@@ -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
+ }
+ }
}
-``` \ No newline at end of file
+```