Simple embedded shell with runtime pluggable commands.

Dependents:   DataBus2018

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

Revision:
0:49820d5a38c9
Child:
1:998a7ed04f10
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SimpleShell.h	Sat Dec 01 23:18:03 2018 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+class SimpleShell {
+public:  
+    SimpleShell();
+
+    void attach(Callback<void()> func, char *command) {
+    }
+    
+//    void registerCommand(char *commandString, char *helpText, Callback<void(float)> cb);
+    void run();
+    
+private:
+    static const int MAXBUF=128;
+    void printPrompt(void);
+    void readCommand();
+    char cmd[MAXBUF];
+    char _cwd[MAXBUF];
+}; // class
\ No newline at end of file