diff --git a/hal/src/peripherals/timer/d11.rs b/hal/src/peripherals/timer/d11.rs index b484eabf417..8b36b16fa23 100644 --- a/hal/src/peripherals/timer/d11.rs +++ b/hal/src/peripherals/timer/d11.rs @@ -57,11 +57,11 @@ where // need to manually read the bit here while count.ctrla().read().bits() & 1 != 0 {} - count.ctrlbset().write(|w| { + count.ctrlbclr().write(|w| { // Count up when the direction bit is zero - w.dir().clear_bit(); + w.dir().set_bit(); // Periodic - w.oneshot().clear_bit() + w.oneshot().set_bit() }); // Set TOP value for mfrq mode diff --git a/hal/src/peripherals/timer/d5x.rs b/hal/src/peripherals/timer/d5x.rs index 260f7e2f7b6..4290e9c3b22 100644 --- a/hal/src/peripherals/timer/d5x.rs +++ b/hal/src/peripherals/timer/d5x.rs @@ -55,11 +55,11 @@ where count.ctrla().write(|w| w.swrst().set_bit()); while count.syncbusy().read().swrst().bit_is_set() {} - count.ctrlbset().write(|w| { + count.ctrlbclr().write(|w| { // Count up when the direction bit is zero - w.dir().clear_bit(); + w.dir().set_bit(); // Periodic - w.oneshot().clear_bit() + w.oneshot().set_bit() }); // Set TOP value for mfrq mode