diff options
-rw-r--r-- | src/rtc.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |