diff options
author | 2021-12-26 11:42:14 +0100 | |
---|---|---|
committer | 2021-12-26 11:42:14 +0100 | |
commit | 7bec2347663d0a8c361f48adae7a2fa7e84abede (patch) | |
tree | 0747044cbe648c37a49ea81a44c23d7106cf8097 /examples/common.rs | |
parent | 3a1d42b614309759d25fb2bf8c628a1c26159c83 (diff) | |
download | rtic-7bec2347663d0a8c361f48adae7a2fa7e84abede.tar.gz rtic-7bec2347663d0a8c361f48adae7a2fa7e84abede.tar.zst rtic-7bec2347663d0a8c361f48adae7a2fa7e84abede.zip |
Improved docs on where the 12 MHz comes from in SysTick
Diffstat (limited to 'examples/common.rs')
-rw-r--r-- | examples/common.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/common.rs b/examples/common.rs index 26a5c8fb..1fe671e6 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 |