summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtc.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rtc.rs b/src/rtc.rs
index 79e450a..fa7b347 100644
--- a/src/rtc.rs
+++ b/src/rtc.rs
@@ -21,8 +21,9 @@ impl Clock {
static CLOCK: Clock = Clock::new();
-// Set to run every ~500µs.
-static COUNTER: u32 = 16; // 32 ticks requires 1024 cycles at 32,768Hz for 1 second.
+// Set to run every ~500µs. This has been loosely calibrated from a
+// nrf52 clock running Arduino and a Linux host.
+static COUNTER: u32 = 13;
pub fn setup(mut rtc: RTC, clocks: &mut GenericClockController) -> impl FnMut() {
let rtc_clock = &clocks.gclk1();