Lines Matching +full:4 +full:x

27 #define TIM_CCRx(x)	(0x34 + 4 * ((x) - 1))	/* Capt/Comp Register x (x ∈ {1, .. 4})	*/  argument
31 #define TIM_CCR4 TIM_CCRx(4) /* Capt/Comp Register 4 */
38 #define TIM_CR1_DIR BIT(4) /* Counter Direction */
40 #define TIM_CR2_MMS (BIT(4) | BIT(5) | BIT(6)) /* Master mode selection */
43 #define TIM_SMCR_TS (BIT(4) | BIT(5) | BIT(6)) /* Trigger selection */
45 #define TIM_DIER_CCxIE(x) BIT(1 + ((x) - 1)) /* CCx Interrupt Enable (x ∈ {1, .. 4}) */ argument
49 #define TIM_DIER_CC4IE TIM_DIER_CCxIE(4) /* CC4 Interrupt Enable */
51 #define TIM_DIER_CCxDE(x) BIT(9 + ((x) - 1)) /* CCx DMA request Enable (x ∈ {1, .. 4}) */ argument
55 #define TIM_DIER_CC4DE TIM_DIER_CCxDE(4) /* CC4 DMA request Enable */
59 #define TIM_SR_CC_IF(x) BIT((x) + 1) /* CC1, CC2, CC3, CC4 interrupt flag */ argument
72 #define TIM_CCMR_CC4S (BIT(8) | BIT(9)) /* Capture/compare 4 sel */
75 #define TIM_CCER_CCxE(x) BIT(0 + 4 * ((x) - 1)) /* Capt/Comp x out Ena (x ∈ {1, .. 4}) */ argument
76 #define TIM_CCER_CCxP(x) BIT(1 + 4 * ((x) - 1)) /* Capt/Comp x Polarity (x ∈ {1, .. 4}) */ argument
77 #define TIM_CCER_CCxNE(x) BIT(2 + 4 * ((x) - 1)) /* Capt/Comp xN out Ena (x ∈ {1, .. 4}) */ argument
78 #define TIM_CCER_CCxNP(x) BIT(3 + 4 * ((x) - 1)) /* Capt/Comp xN Polarity (x ∈ {1, .. 4}) */ argument
91 #define TIM_CCER_CC4E TIM_CCER_CCxE(4) /* Capt/Comp 4 out Ena */
92 #define TIM_CCER_CC4P TIM_CCER_CCxP(4) /* Capt/Comp 4 Polarity */
93 #define TIM_CCER_CC4NE TIM_CCER_CCxNE(4) /* Capt/Comp 4N out Ena */
94 #define TIM_CCER_CC4NP TIM_CCER_CCxNP(4) /* Capt/Comp 4N Polarity */
95 #define TIM_CCER_CCXE (BIT(0) | BIT(4) | BIT(8) | BIT(12))
96 #define TIM_BDTR_BKE(x) BIT(12 + (x) * 12) /* Break input enable */ argument
97 #define TIM_BDTR_BKP(x) BIT(13 + (x) * 12) /* Break input polarity */ argument
100 #define TIM_BDTR_BKF(x) (0xf << (16 + (x) * 4)) argument
101 #define TIM_DCR_DBA GENMASK(4, 0) /* DMA base addr */
106 #define TIM_CR2_MMS_SHIFT 4
112 #define TIM_SMCR_TS_SHIFT 4
114 #define TIM_BDTR_BKF_SHIFT(x) (16 + (x) * 4) argument
127 /* STM32 Timer may have either a unique global interrupt or 4 interrupt lines */