It is based on https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/

Files at this revision

API Documentation at this revision

Comitter:
inst
Date:
Sat Apr 09 02:09:32 2016 +0000
Parent:
4:d07f58c46a79
Commit message:

Changed in this revision

rotary_encoder_base/rotary_encoder_base.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d07f58c46a79 -r fae9a340d212 rotary_encoder_base/rotary_encoder_base.cpp
--- a/rotary_encoder_base/rotary_encoder_base.cpp	Sun Apr 03 06:30:19 2016 +0000
+++ b/rotary_encoder_base/rotary_encoder_base.cpp	Sat Apr 09 02:09:32 2016 +0000
@@ -7,14 +7,11 @@
 rotary_encoder_base::rotary_encoder_base(TIM_TypeDef* timer_type,
                                         uint32_t encoder_mode,
                                         size_t resolution) : rotary_encoder(resolution) {
-                                            
-                                            
     
     // todo:delete debug
     encoder_mode = TIM_ENCODERMODE_TI12;
     resolution = 400;
     
-    
     timer_handler_.Instance              = timer_type;
     timer_handler_.Init.Period           = max_counts_;
     timer_handler_.Init.CounterMode      = TIM_COUNTERMODE_UP;