Eli Menchaca / Mbed 2 deprecated EM_kl46z_stop_watch_v2

Dependencies:   SLCD mbed

Fork of kl46z_stop_watch_v2 by Stanley Cohen

Revision:
2:988fe2afa2ea
Parent:
1:0d13b6d7907f
--- a/main.cpp	Wed Oct 12 15:55:44 2016 +0000
+++ b/main.cpp	Wed Oct 19 04:28:53 2016 +0000
@@ -9,7 +9,7 @@
 #define RBUT PTC3
 #define STOPPEDSTATE 0
 #define TIMINGSTATE  1
-#define RESETTINGSTATE 0
+#define RESETTINGSTATE 2
 #define PRINTDELTA 0.01
 #define LCDCHARLEN 10
 #define BUTTONTIME 0.2
@@ -27,8 +27,6 @@
 DigitalIn buttons[NUMBUTS] = {RBUT, LBUT};
 int displayState = STOPPEDSTATE;
 
-
-
 void initialize_global_vars(){
     pc.printf(PROGNAME);
     // set up DAQ timer
@@ -47,6 +45,18 @@
     wait(TITLEWAIT);
     return;
 }
+
+void start_timer(){
+}
+
+void stop_timer() {
+    
+}
+
+void clear_timer() {
+    
+}
+
 int main(void) {
     int i;
     char lcdData[LCDCHARLEN];
@@ -80,14 +90,13 @@
             }// for loop to look at buttons
             ButtonTimer.reset();
             switch (displayState){
-                    /* this goes away
                     case STOPPEDSTATE : {                     
                         rled = 0.0;
                         gled = 1.0;
                         break;
                     }
-                    */
-                    case RESETTINGSTATE:
+                    
+                    case RESETTINGSTATE:{
                         if (!statetoggle){
                             secondsCount = 0;
                             displayState = TIMINGSTATE;
@@ -95,7 +104,7 @@
                         rled = 0.0;
                         gled = 1.0;
                         break;
-                        
+                    }
                         
                     case TIMINGSTATE : {
                         if(statetoggle){