From c759ba59d0723c478bdcf79f134c8b1dd94269b0 Mon Sep 17 00:00:00 2001 From: tsaitgaist Date: Sun, 27 Mar 2016 21:11:05 +0200 Subject: [PATCH] stm32: timer: fix trigger selection names correct TIMx_SMCR TS[2:0]: Trigger selection name are TI1F_ED, TI1FP1, TI2FP2 according to RM0008 and RM0090 --- include/libopencm3/stm32/common/timer_common_all.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libopencm3/stm32/common/timer_common_all.h b/include/libopencm3/stm32/common/timer_common_all.h index e315afab..88c81d6d 100644 --- a/include/libopencm3/stm32/common/timer_common_all.h +++ b/include/libopencm3/stm32/common/timer_common_all.h @@ -546,11 +546,11 @@ specific memorymap.h header before including this header file.*/ /** Internal Trigger 3 (ITR3) */ #define TIM_SMCR_TS_ITR3 (0x3 << 4) /** TI1 Edge Detector (TI1F_ED) */ -#define TIM_SMCR_TS_IT1F_ED (0x4 << 4) +#define TIM_SMCR_TS_TI1F_ED (0x4 << 4) /** Filtered Timer Input 1 (TI1FP1) */ -#define TIM_SMCR_TS_IT1FP1 (0x5 << 4) -/** Filtered Timer Input 2 (TI1FP2) */ -#define TIM_SMCR_TS_IT1FP2 (0x6 << 4) +#define TIM_SMCR_TS_TI1FP1 (0x5 << 4) +/** Filtered Timer Input 2 (TI2FP2) */ +#define TIM_SMCR_TS_TI2FP2 (0x6 << 4) /** External Trigger input (ETRF) */ #define TIM_SMCR_TS_ETRF (0x7 << 4) #define TIM_SMCR_TS_MASK (0x7 << 4)