paolo della vedova
/
stm32_pulse_counter
pulse counter stm32
Diff: counter.cpp
- Revision:
- 3:8c3e5f30cb6d
- Parent:
- 2:6f1807a35656
--- a/counter.cpp Wed Oct 07 05:50:07 2015 +0000 +++ b/counter.cpp Wed Oct 07 17:12:25 2015 +0000 @@ -25,8 +25,6 @@ timer.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; timer.Init.CounterMode = TIM_COUNTERMODE_UP; - HAL_TIM_Base_Init(&timer); - encoder.EncoderMode = TIM_ENCODERMODE_TI1; encoder.IC1Filter = 0x0f; encoder.IC1Polarity = TIM_INPUTCHANNELPOLARITY_RISING; //step signal