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/periodic.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/periodic.rs') diff --git a/examples/periodic.rs b/examples/periodic.rs index 495054e..40c6925 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -25,6 +25,7 @@ mod app { 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); foo::spawn_after(1.secs()).unwrap(); -- cgit v1.2.3