Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of frdm_echo by
Diff: shell.h
- Revision:
- 9:f9efd3a69c2d
- Parent:
- 8:b715912d684b
- Child:
- 11:4c6c6d6c0ebe
--- a/shell.h Mon Apr 14 16:41:57 2014 +0000 +++ b/shell.h Mon Apr 14 21:02:10 2014 +0000 @@ -1,22 +1,23 @@ #ifndef shell__h__ #define shell__h__ -#define ItsInputBufferSize_ 20 +#define ItsInputBufferSize_ 24 class Shell { public: Shell(uint32_t); void sendHelloWorld(); void scanUSBSerialRx(); - private: void sendText(char *); - void addCharacterToBuffer(char); + bool addCharacterToBuffer(char); void finishCharacterBuffer(); Serial *usbSerial; char inputBuffer[ItsInputBufferSize_]; uint32_t characterCount, characterPointer; + bool findString(char *, uint32_t); + void parseCommands(); }; #endif \ No newline at end of file