TIM_IC_InitTypeDef sConfigIC; htim4.Instance = TIM4; htim4.Init.Prescaler =0; htim4.Init.CounterMode = TIM_COUNTERMODE_UP; htim4.Init.Period =0xFFFF; htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;HAL_TIM_IC_Init(&htim4); sConfig.EncoderMode = TIM_ENCODERMODE_TI12; sConfig....
TIM_IC_InitTypeDef sConfigIC; htim4.Instance = TIM4; htim4.Init.Prescaler =0; htim4.Init.CounterMode = TIM_COUNTERMODE_UP; htim4.Init.Period =0xFFFF; htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;HAL_TIM_IC_Init(&htim4); sConfig.EncoderMode = TIM_ENCODERMODE_TI12; sConfig....