mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
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:
parent
f501a1ba2c
commit
f4736457f5
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user