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.
Dependencies: mbed
Fork of webserverBlinky by
Diff: PPP-Blinky/ppp-blinky.cpp
- Revision:
- 181:bcfe7fe2142d
- Parent:
- 180:fb1ab50e5e7a
- Child:
- 182:f039ec218c9f
--- a/PPP-Blinky/ppp-blinky.cpp Mon Sep 11 15:05:52 2017 +0000 +++ b/PPP-Blinky/ppp-blinky.cpp Mon Sep 11 16:54:18 2017 +0000 @@ -74,11 +74,11 @@ #endif // verbosity flags used in debug printouts - change to 1 to see increasingly more detailed debug info. -#define v0 1 +#define v0 0 #define v1 0 #define v2 0 -#define IP_HEADER_DUMP_YES /* YES for ip header dump */ -#define TCP_HEADER_DUMP_YES /* YES for tcp header dump */ +#define IP_HEADER_DUMP_NO /* YES for ip header dump */ +#define TCP_HEADER_DUMP_NO /* YES for tcp header dump */ // this is the webpage we serve when we get an HTTP request to root (/) // keep size under ~900 bytes to fit into a single PPP packet @@ -1211,16 +1211,16 @@ void waitForPppFrame() { while(1) { - checkPc(); // handle received characters from the PC - sendUdpData(); // handle received characters from the DEBUG TERMINAL + //checkPc(); // handle received characters from the PC + //sendUdpData(); // handle received characters from the DEBUG TERMINAL if ( ppp.rx.head != ppp.rx.tail ) { int oldTail = ppp.rx.tail; // remember where the character is located in the buffer int rx = pc_getBuf(); // get the character if (rx==FRAME_7E) { if (ppp.firstFrame) { // is this the start of the first frame start - ppp.firstFrame=0; ppp.rx.rtail = ppp.rx.tail; // update real-time tail with the virtual tail ppp.hdlc.frameStartIndex = ppp.rx.tail; // remember where first frame started + ppp.firstFrame=0; // clear first frame flag } else { ppp.hdlc.frameEndIndex=oldTail; // mark the frame end character processPPPFrame(ppp.hdlc.frameStartIndex, ppp.hdlc.frameEndIndex); // process the frame