atsams-rs / atsamx7x-rust

Rust HAL, PACs, and examples for the Microship SAM E70/S70/V70/V71
Apache License 2.0
25 stars 11 forks source link

hal/tc: nullify clock drift on Monotonic overflow #30

Open tmplt opened 2 years ago

tmplt commented 2 years ago

Copied from the internal issue tracker:

The u32 extension of the Monotonic implementation in tc/generate.rs is subject to clock drift when the internal 16-bit counter overflows. We can probably compensate the RC register to nullify the drift.