library to modify and read program variable in runtime from a serial console. You can reset as well the mbed from the console without pushing buttons. Handy for debugging from the online compiler as you can change the behavior of the program without need to recompile each time.

Revision:
8:934ec53fe2c0
Parent:
7:fafe81a95c08
Child:
10:34d368966675
--- a/VarStore.h	Mon Aug 25 17:55:39 2014 +0000
+++ b/VarStore.h	Mon Aug 25 19:54:12 2014 +0000
@@ -2,9 +2,11 @@
 #define VARSTORE_H
 
 #include "mbed.h"
+
+
+
 #include "VarItems.h"
 
-
 #define SZ 10
 #define STR_OK ""
 
@@ -19,7 +21,7 @@
     *Constructor
     ********************************/
 
-    VarStore(Serial *ser);
+    VarStore(   RawSerial *ser);
     /*******************************
     *
     *Destructor
@@ -93,7 +95,7 @@
     ********************************/
     VarItem Store[SZ];
     int VarCounter;
-    Serial *pc;
+        RawSerial  *pc;
     
     static VarStore *MyThis;   // used by the workers reading the terminal