Bits 3:2 IC1PSC: Input Capture 1 Prescaler. This bit-field defines the ratio of the prescaler acting on CC1 input (IC1). The prescaler is reset as soon as CC1E=’0’ (TIMx_CCER register). 00: no prescaler, capture is done each time an edge is detected on the capture input. 01: capture is done once every 2 events. 10: capture is done once every 4 events. 11: capture is done once every 8 events.
#define TIM_CKD_DIV1 ((u16)0x0000) #define TIM_CKD_DIV2 ((u16)0x0004) // Old value ((u16)0x0100) #define TIM_CKD_DIV4 ((u16)0x0008) // Old value ((u16)0x0200) #define TIM_CKD_DIV8 ((u16)0x000C)