diff options
author | tsaitgaist <github@mail.tsaitgaist.info> | 2016-03-27 22:11:05 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2016-03-29 01:57:01 +0300 |
commit | c759ba59d0723c478bdcf79f134c8b1dd94269b0 (patch) | |
tree | 2a1b98c78d2bdd4cc4fb8b8a51d13f86c5b3965e /include/libopencm3/stm32/common/timer_common_all.h | |
parent | 492a943b7e448469cd8e88f60fda41ef46aa3b2a (diff) |
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
Diffstat (limited to 'include/libopencm3/stm32/common/timer_common_all.h')
-rw-r--r-- | include/libopencm3/stm32/common/timer_common_all.h | 8 |
1 files 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) |