pulse counter stm32

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- 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