Serial terminal, mainly for debugging purposes
SerialTerm.h
- Committer:
- Tobias
- Date:
- 2011-05-23
- Revision:
- 0:07da1704cfd8
File content as of revision 0:07da1704cfd8:
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; };