diff --git a/src/pwm.rs b/src/pwm.rs index a8378f54..155b23b0 100644 --- a/src/pwm.rs +++ b/src/pwm.rs @@ -564,7 +564,7 @@ macro_rules! tim_pin_hal { fn enable(&mut self) { let tim = unsafe { &*$TIMX::ptr() }; - tim.$ccmrx_output.modify(|_, w| + tim.$ccmrx_output().modify(|_, w| w.$ocxpe() .enabled() // Enable preload .$ocxm() diff --git a/src/qei.rs b/src/qei.rs index 68fbe7e8..445b4361 100644 --- a/src/qei.rs +++ b/src/qei.rs @@ -161,7 +161,7 @@ macro_rules! tim_hal { // Configure TxC1 and TxC2 as captures - tim.ccmr1_output.write(|w| unsafe { + tim.ccmr1_output().write(|w| unsafe { w.cc1s() .bits(0b01) .cc2s()