Simple embedded shell with runtime pluggable commands.

Dependents:   DataBus2018

Implements a simple unix-like shell for embedded systems with a pluggable command architecture.

Revision:
29:8d4132274445
Parent:
28:753db82debb1
Child:
30:35522ea06236
--- a/SimpleShell.h	Wed Dec 26 15:51:42 2018 +0000
+++ b/SimpleShell.h	Wed Dec 26 15:56:05 2018 +0000
@@ -35,7 +35,7 @@
     typedef Callback<void(int,char**)> callback_t;
     
     /// Create a new shell instance.
-    SimpleShell();
+    SimpleShell(char *home);
 
     /** Call this to run the shell.
      * @note The shell can be run in a new thread. Be sure to give it enough
@@ -136,6 +136,9 @@
 
     /// Current working directory
     char _cwd[MAXBUF];
+    
+    /// Home directory
+    char _home[MAXBUF];
 
 }; // class