Interactive serial interface for sending commands to an embedded system using serial communications. This will be helpful if you want to send commands to serial port and be able to correct the wrong text entered at the terminal
Diff: main.cpp
- Revision:
- 1:e71563467f24
- Parent:
- 0:97014197b0d4
- Child:
- 2:880559109781
--- a/main.cpp Wed Jun 07 06:04:30 2017 +0000 +++ b/main.cpp Wed Jun 07 06:10:58 2017 +0000 @@ -12,7 +12,7 @@ #define BAUD_RATE_ 9600 // Serial Terminal baudrate Serial pc(USBTX, USBRX); -void GetStringFromSerial(char (& stringBuf) [256]) +void GetStringFromSerial(char (& stringBuf) [MAX_LENGTH_OF_THE_STRING]) { pc.printf("Echoes back to the screen anything you type\n"); int i=0;