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:
- 8:b715912d684b
- Parent:
- 5:03b7c237c4c4
- Child:
- 9:f9efd3a69c2d
--- a/shell.h Mon Apr 14 03:04:28 2014 +0000 +++ b/shell.h Mon Apr 14 16:41:57 2014 +0000 @@ -1,6 +1,8 @@ #ifndef shell__h__ #define shell__h__ +#define ItsInputBufferSize_ 20 + class Shell { public: Shell(uint32_t); @@ -9,8 +11,12 @@ private: void sendText(char *); + void addCharacterToBuffer(char); + void finishCharacterBuffer(); Serial *usbSerial; + char inputBuffer[ItsInputBufferSize_]; + uint32_t characterCount, characterPointer; }; #endif \ No newline at end of file