From 7bec2347663d0a8c361f48adae7a2fa7e84abede Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sun, 26 Dec 2021 11:42:14 +0100 Subject: Improved docs on where the 12 MHz comes from in SysTick --- examples/common.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/common.rs') diff --git a/examples/common.rs b/examples/common.rs index 26a5c8f..1fe671e 100644 --- a/examples/common.rs +++ b/examples/common.rs @@ -33,6 +33,8 @@ mod app { #[init] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { let systick = cx.core.SYST; + + // Initialize the monotonic (SysTick rate in QEMU is 12 MHz) let mono = Systick::new(systick, 12_000_000); // Spawn the task `foo` directly after `init` finishes -- cgit v1.2.3