Revision:
2:fa04a99dcdab
Parent:
1:8c1bace3af7b
--- a/counter.cpp	Fri Nov 25 14:03:51 2011 +0000
+++ b/counter.cpp	Fri Nov 25 14:09:37 2011 +0000
@@ -1,31 +1,31 @@
-/*
- * Based on Aaron Berk's library for a QEI (http://mbed.org/users/aberk/libraries/QEI/le4bkf), this mainly involved deleting most of the functionality
- *
- * Includes
- */
-#include "counter.h"
-
-counter::counter(PinName channelA) : channelA_(channelA){
-
-    pulses_       = 0;
-    channelA_.rise(this, &counter::encode);
-    
-}
-
-void counter::reset(void) {
-
-    pulses_      = 0;
-    
-}
-
-int counter::getPulses(void) {
-
-    return pulses_;
-
-}
-
-void counter::encode(void) {
-
-    pulses_++;
-    
+/*
+ * Based on Aaron Berk's library for a QEI (http://mbed.org/users/aberk/libraries/QEI/le4bkf), this mainly involved deleting most of the functionality
+ *
+ * Includes
+ */
+#include "counter.h"
+
+counter::counter(PinName channelA) : channelA_(channelA){
+
+    pulses_       = 0;
+    channelA_.rise(this, &counter::encode);
+    
+}
+
+void counter::reset(void) {
+
+    pulses_      = 0;
+    
+}
+
+int counter::getPulses(void) {
+
+    return pulses_;
+
+}
+
+void counter::encode(void) {
+
+    pulses_++;
+    
 }
\ No newline at end of file