Searched refs:TIM_CCRx (Results 1 – 2 of 2) sorted by relevance
27 #define TIM_CCRx(x) (0x34 + 4 * ((x) - 1)) /* Capt/Comp Register x (x ∈ {1, .. 4}) */ macro28 #define TIM_CCR1 TIM_CCRx(1) /* Capt/Comp Register 1 */29 #define TIM_CCR2 TIM_CCRx(2) /* Capt/Comp Register 2 */30 #define TIM_CCR3 TIM_CCRx(3) /* Capt/Comp Register 3 */31 #define TIM_CCR4 TIM_CCRx(4) /* Capt/Comp Register 4 */
288 ret = regmap_read(priv->regmap, TIM_CCRx(ch + 1), &wfhw->ccr); in stm32_pwm_read_waveform()366 ret = regmap_write(priv->regmap, TIM_CCRx(ch + 1), wfhw->ccr); in stm32_pwm_write_waveform()