aboutsummaryrefslogtreecommitdiff
path: root/examples/periodic.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2021-12-26 11:42:14 +0100
committerEmil Fresk <emil.fresk@gmail.com>2021-12-26 11:42:14 +0100
commit7bec2347663d0a8c361f48adae7a2fa7e84abede (patch)
tree0747044cbe648c37a49ea81a44c23d7106cf8097 /examples/periodic.rs
parent3a1d42b614309759d25fb2bf8c628a1c26159c83 (diff)
Improved docs on where the 12 MHz comes from in SysTick
Diffstat (limited to 'examples/periodic.rs')
-rw-r--r--examples/periodic.rs1
1 files changed, 1 insertions, 0 deletions
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();