From 12327ab2554f32cbb191fe2ade4ddf178f0c5477 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 May 2024 02:43:30 +0800 Subject: [PATCH] adjust ticktimer to reflect real time --- services/xous-ticktimer/src/platform/cramium/implementation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/xous-ticktimer/src/platform/cramium/implementation.rs b/services/xous-ticktimer/src/platform/cramium/implementation.rs index 9a2f3b08e..6bde7e8c6 100644 --- a/services/xous-ticktimer/src/platform/cramium/implementation.rs +++ b/services/xous-ticktimer/src/platform/cramium/implementation.rs @@ -114,6 +114,8 @@ impl XousTickTimer { #[cfg(feature = "watchdog")] wdt: CSR::new(wdt.as_mut_ptr() as *mut u32), }; + // TODO: base this off of some system-level constant + xtt.csr.wo(utra::ticktimer::CLOCKS_PER_TICK, 200_000); #[cfg(feature = "watchdog")] {