paolo della vedova
/
stm32_pulse_counter
pulse counter stm32
Revision 3:8c3e5f30cb6d, committed 2015-10-07
- Comitter:
- c128
- Date:
- Wed Oct 07 17:12:25 2015 +0000
- Parent:
- 2:6f1807a35656
- Commit message:
- update
Changed in this revision
counter.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6f1807a35656 -r 8c3e5f30cb6d counter.cpp --- 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