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:
12:e9c8d2d9ac71
Parent:
11:a3af7a5e03d2
Child:
13:e1ba5bf9e51f
--- a/VarStore.h	Tue Aug 26 07:17:39 2014 +0000
+++ b/VarStore.h	Tue Aug 26 08:20:02 2014 +0000
@@ -21,7 +21,7 @@
     *Constructor
     ********************************/
 
-    VarStore(   RawSerial *ser);
+    VarStore(   RawSerial *ser, int sz);
     /*******************************
     *
     *Destructor
@@ -93,10 +93,11 @@
     *
     *
     ********************************/
-    VarItem Store[SZ];
+    VarItem *Store;
+    int sz;         // number of varibales to store / array size
     int VarCounter;
-        RawSerial  *pc;
-    
+    RawSerial  *pc;
+
     static VarStore *MyThis;   // used by the workers reading the terminal
 
 };