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
shell.h
- Committer:
- silverpanda
- Date:
- 2014-04-16
- Revision:
- 11:4c6c6d6c0ebe
- Parent:
- 9:f9efd3a69c2d
- Child:
- 12:b846b64e3980
File content as of revision 11:4c6c6d6c0ebe:
#ifndef shell__h__ #define shell__h__ #define ItsInputBufferSize_ 24 class Shell { public: Shell(uint32_t); void sendHelloWorld(); void scanUSBSerialRx(); private: void sendText(char *); bool addCharacterToBuffer(char); void finishCharacterBuffer(); void sendExample(); char lowercase(char); Serial *usbSerial; char inputBuffer[ItsInputBufferSize_]; uint32_t characterCount, characterPointer; bool findString(char *); void parseCommands(); void parseLED(); }; #endif