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:
7:fafe81a95c08
Parent:
6:9848fdaf2ad9
Child:
8:934ec53fe2c0
--- a/VarStore.h	Mon Aug 25 15:38:31 2014 +0000
+++ b/VarStore.h	Mon Aug 25 17:55:39 2014 +0000
@@ -10,6 +10,9 @@
 
 class VarStore
 {
+    
+ 
+friend    void Worker2();
 public:
     /*******************************
     *
@@ -57,8 +60,8 @@
     *
     ********************************/
 
-    static    void Worker(void const *args);
-
+ //   static    void Worker(void const *args);
+ static    void Worker(void const *args);
    
 
 protected:
@@ -76,13 +79,13 @@
     * llevar a cabo la acción
     *
     ********************************/
-    char  *Do(char *str, VarStore *MyThis);
+    char  *Do(char *str);
     
     /*******************************
     *Para hacer gestión via interrupciones.
     *
     ********************************/
-    static void Worker2();
+   // static void Worker2();
     
     /*******************************
     *
@@ -96,6 +99,6 @@
 
 };
 
-
+    
 
 #endif // VARSTORE_H