diff --git a/include/libopencm3/stm32/common/timer_common_all.h b/include/libopencm3/stm32/common/timer_common_all.h index 88c81d6d..d4fe478c 100644 --- a/include/libopencm3/stm32/common/timer_common_all.h +++ b/include/libopencm3/stm32/common/timer_common_all.h @@ -863,8 +863,8 @@ depending on the level of the complementary input. */ /* Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in * TIMx_CCER). */ #define TIM_CCMR2_CC4S_OUT (0x0 << 8) -#define TIM_CCMR2_CC4S_IN_TI2 (0x1 << 8) -#define TIM_CCMR2_CC4S_IN_TI1 (0x2 << 8) +#define TIM_CCMR2_CC4S_IN_TI4 (0x1 << 8) +#define TIM_CCMR2_CC4S_IN_TI3 (0x2 << 8) #define TIM_CCMR2_CC4S_IN_TRC (0x3 << 8) #define TIM_CCMR2_CC4S_MASK (0x3 << 8) @@ -892,8 +892,8 @@ depending on the level of the complementary input. */ /* Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in * TIMx_CCER). */ #define TIM_CCMR2_CC3S_OUT (0x0 << 0) -#define TIM_CCMR2_CC3S_IN_TI2 (0x1 << 0) -#define TIM_CCMR2_CC3S_IN_TI1 (0x2 << 0) +#define TIM_CCMR2_CC3S_IN_TI3 (0x1 << 0) +#define TIM_CCMR2_CC3S_IN_TI4 (0x2 << 0) #define TIM_CCMR2_CC3S_IN_TRC (0x3 << 0) #define TIM_CCMR2_CC3S_MASK (0x3 << 0)