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@9:f9efd3a69c2d, 2014-04-14 (annotated)
- Committer:
- silverpanda
- Date:
- Mon Apr 14 21:02:10 2014 +0000
- Revision:
- 9:f9efd3a69c2d
- Parent:
- 8:b715912d684b
- Child:
- 11:4c6c6d6c0ebe
debugged a bit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
silverpanda | 5:03b7c237c4c4 | 1 | #ifndef shell__h__ |
silverpanda | 5:03b7c237c4c4 | 2 | #define shell__h__ |
silverpanda | 5:03b7c237c4c4 | 3 | |
silverpanda | 9:f9efd3a69c2d | 4 | #define ItsInputBufferSize_ 24 |
silverpanda | 8:b715912d684b | 5 | |
silverpanda | 5:03b7c237c4c4 | 6 | class Shell { |
silverpanda | 5:03b7c237c4c4 | 7 | public: |
silverpanda | 5:03b7c237c4c4 | 8 | Shell(uint32_t); |
silverpanda | 5:03b7c237c4c4 | 9 | void sendHelloWorld(); |
silverpanda | 5:03b7c237c4c4 | 10 | void scanUSBSerialRx(); |
silverpanda | 5:03b7c237c4c4 | 11 | private: |
silverpanda | 5:03b7c237c4c4 | 12 | void sendText(char *); |
silverpanda | 9:f9efd3a69c2d | 13 | bool addCharacterToBuffer(char); |
silverpanda | 8:b715912d684b | 14 | void finishCharacterBuffer(); |
silverpanda | 5:03b7c237c4c4 | 15 | |
silverpanda | 5:03b7c237c4c4 | 16 | Serial *usbSerial; |
silverpanda | 8:b715912d684b | 17 | char inputBuffer[ItsInputBufferSize_]; |
silverpanda | 8:b715912d684b | 18 | uint32_t characterCount, characterPointer; |
silverpanda | 9:f9efd3a69c2d | 19 | bool findString(char *, uint32_t); |
silverpanda | 9:f9efd3a69c2d | 20 | void parseCommands(); |
silverpanda | 5:03b7c237c4c4 | 21 | }; |
silverpanda | 5:03b7c237c4c4 | 22 | |
silverpanda | 5:03b7c237c4c4 | 23 | #endif |