RealtimeCompLab2

Dependencies:   mbed

Fork of PPP-Blinky by Nicolas Nackel

Revision:
19:e53cdee9a33c
Parent:
18:3e35de1bc877
Child:
20:5db9b77b38a6
--- a/main.cpp	Sun Jan 01 22:37:44 2017 +0000
+++ b/main.cpp	Mon Jan 02 06:14:27 2017 +0000
@@ -9,20 +9,24 @@
 // Note - turn off all authentication, passwords, compression etc. Simplest link possible.
 
 // Handy links
+// https://developer.mbed.org/users/nixnax/code/PPP-Blinky/  - introduction and notes
 // http://atari.kensclassics.org/wcomlog.htm
 // https://technet.microsoft.com/en-us/library/cc957992.aspx
 // http://www.sunshine2k.de/coding/javascript/crc/crc_js.html
 // https://en.wikibooks.org/wiki/Serial_Programming/IP_Over_Serial_Connections
+// http://pingtester.net/ - nice tool for high rate ping testing
 
 Serial pc(USBTX, USBRX); // The USB com port - Set this up as a Dial-Up Modem on your pc
 Serial xx(PC_10, PC_11); // debug((((( port - use an additional USB serial port to monitor this
 
-#define debug(x) xx.printf x 
+// the second #define below gets rid of all the debug printfs
+#define debug(x) xx.prinf x
+//#define debug(x) {}
 
 DigitalOut led1(LED1);
 
 #define FRAME_7E (0x7e)
-#define BUFLEN (1<<12)
+#define BUFLEN (1<<14)
 volatile char rxbuf[BUFLEN];
 char frbuf[6000]; // buffer for ppp frame