nrf/timer: use low power counter mode.

The regular one permanently requests HFCLK, while the low power one only does
so while counting, for 1 clock cycle. The regular mode is "deprecated" too.
This commit is contained in:
Dario Nieuwenhuis 2023-05-26 16:50:19 +02:00
parent f501a1ba2c
commit f4736457f5

View File

@ -124,7 +124,7 @@ impl<'d, T: Instance> Timer<'d, T> {
this.stop();
if is_counter {
regs.mode.write(|w| w.mode().counter());
regs.mode.write(|w| w.mode().low_power_counter());
} else {
regs.mode.write(|w| w.mode().timer());
}