Home
last modified time | relevance | path

Searched refs:TIM_CCER_CCxP (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/mfd/
H A Dstm32-timers.h76 #define TIM_CCER_CCxP(x) BIT(1 + 4 * ((x) - 1)) /* Capt/Comp x Polarity (x ∈ {1, .. 4}) */ macro
80 #define TIM_CCER_CC1P TIM_CCER_CCxP(1) /* Capt/Comp 1 Polarity */
84 #define TIM_CCER_CC2P TIM_CCER_CCxP(2) /* Capt/Comp 2 Polarity */
88 #define TIM_CCER_CC3P TIM_CCER_CCxP(3) /* Capt/Comp 3 Polarity */
92 #define TIM_CCER_CC4P TIM_CCER_CCxP(4) /* Capt/Comp 4 Polarity */
/linux/drivers/pwm/
H A Dpwm-stm32.c178 wfhw->ccer |= TIM_CCER_CCxP(ch + 1); in stm32_pwm_round_waveform_tohw()
235 if (wfhw->ccer & TIM_CCER_CCxP(ch + 1)) { in stm32_pwm_round_waveform_fromhw()
361 mask = TIM_CCER_CCxP(ch + 1) | TIM_CCER_CCxNP(ch + 1); in stm32_pwm_write_waveform()