Serial terminal, mainly for debugging purposes

Dependents:   RobotArmControl

Revision:
0:07da1704cfd8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SerialTerm.h	Mon May 23 08:02:59 2011 +0000
@@ -0,0 +1,25 @@
+class SerialTerm;
+
+struct SerialTerm_Command
+{
+    char *cmd;
+    void (*func)(int argc, char **argv, Serial *s);
+    SerialTerm_Command *next;
+};
+
+class SerialTerm
+{
+public:
+    SerialTerm(Serial *s);
+    
+    void Tick(void);
+    void HandleCommand(void);
+    void Add_Command(char *cmd, void (*func)(int argc, char **argv, Serial *s));
+    
+    SerialTerm_Command *First_Command;
+    
+    Serial *serial;
+    bool New_Row;
+    char Command_Buffer[256];
+    int Command_Len;
+};
\ No newline at end of file