Simple embedded shell with runtime pluggable commands.

Dependents:   DataBus2018

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

Revision:
14:75b5918090ae
Parent:
13:a29fb89018e1
Child:
15:242626d8d104
--- a/SimpleShell.h	Thu Dec 13 23:26:34 2018 +0000
+++ b/SimpleShell.h	Wed Dec 19 00:29:05 2018 +0000
@@ -79,8 +79,14 @@
     /// Current end of lookup table
     int lookupEnd;
     
-    /// Temporary command string
-    char cmd[MAXBUF];
+    /// Maximum number of arguments
+    static const int MAXARGS=5;
+    
+    /// Command and arguments
+    char *argv[MAXARGS];
+        
+    /// Size of argv
+    int argc;
     
     /// Current working directory
     char _cwd[MAXBUF];