Dagozilla to RoboCup / EncoderDAGOZ
Revision:
4:9ce0e451aeff
Parent:
3:d43c60d01569
Child:
5:a3349f37ef99
--- a/Nucleo_Encoder_16_bits.cpp	Wed Dec 19 04:02:46 2018 +0000
+++ b/Nucleo_Encoder_16_bits.cpp	Thu Jan 17 04:10:16 2019 +0000
@@ -66,6 +66,19 @@
                 case TIM5_BASE :
                     TIM5->CNT = 0;
                 break;
+                
+                case TIM8_BASE :
+                    TIM8->CNT = 0;
+                break;
+                /*
+                case TIM9_BASE :
+                    TIM9->CNT = 0;
+                break;
+                
+                case TIM12_BASE :
+                    TIM12->CNT = 0;
+                break;
+                */
             }
         }
         else{
@@ -85,6 +98,16 @@
                 
                 case TIM5_BASE :
                     return (int32_t)count;
+                    
+                case TIM8_BASE :
+                    return (int32_t)count;
+                /*  
+                case TIM9_BASE :
+                    return (int32_t)count;
+                    
+                case TIM12_BASE :
+                    return (int32_t)count;
+                */
             }
         }