Corrected bit definitions for capture/compare input selection.

Thanks to Linux Casassa.
This commit is contained in:
Gareth McMullin 2012-04-07 09:01:39 +12:00
parent fa1c6bc632
commit 3be6cd8f76

View File

@ -533,8 +533,8 @@
/* Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in /* Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in
* TIMx_CCER). */ * TIMx_CCER). */
#define TIM_CCMR1_CC1S_OUT (0x0 << 0) #define TIM_CCMR1_CC1S_OUT (0x0 << 0)
#define TIM_CCMR1_CC1S_IN_TI2 (0x1 << 0) #define TIM_CCMR1_CC1S_IN_TI2 (0x2 << 0)
#define TIM_CCMR1_CC1S_IN_TI1 (0x2 << 0) #define TIM_CCMR1_CC1S_IN_TI1 (0x1 << 0)
#define TIM_CCMR1_CC1S_IN_TRC (0x3 << 0) #define TIM_CCMR1_CC1S_IN_TRC (0x3 << 0)
#define TIM_CCMR1_CC1S_MASK (0x3 << 0) #define TIM_CCMR1_CC1S_MASK (0x3 << 0)