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:
5:47b67a7c0bb7
Parent:
3:cf43e6de918e
Child:
6:9848fdaf2ad9
--- a/VarStore.h	Mon Aug 25 12:39:23 2014 +0000
+++ b/VarStore.h	Mon Aug 25 14:58:42 2014 +0000
@@ -77,6 +77,13 @@
     *
     ********************************/
     char  *Do(char *str, VarStore *MyThis);
+    
+    /*******************************
+    *Para hacer gestión via interrupciones.
+    *
+    ********************************/
+    static void Worker2();
+    
     /*******************************
     *
     *
@@ -84,6 +91,7 @@
     VarItem Store[SZ];
     int VarCounter;
     Serial *pc;
+    static VarStore *MyThis;   // used by the worker reading the terminal
 
 
 };