Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
8:d5d055be2bb8
Parent:
7:205ef63d311a
Child:
9:95dc84e9fb7f
--- a/main.cpp	Fri Apr 17 22:12:43 2015 +0000
+++ b/main.cpp	Sat Apr 18 22:14:18 2015 +0000
@@ -60,12 +60,12 @@
 //  MTSSerial now uses our MySerial instead of Serial, and now uses hw flow control by default *
 //  * But unfortunately we can't change the uart interrupt vector in the interrupt table,
 //    and the current low-level support in serial_api.c won't pass through non-tx/rx interrupts,
-//    so we'd need to rebuild the mbed lib for low-level hw flow control to work.
+//    so we change it/rebuild the mbed lib for low-level hw flow control to work.
 // MTSSerialFlowControl uses "manual" (non-hardware-low-level) flow control based on its
 //  internal buffer--Rx servicing seems fast enough not to need hw flow control, so it's okay.
 //
 // mts::MTSSerialFlowControl pcfc( USBTX, USBRX, RTS_PIN_NUMBER, CTS_PIN_NUMBER, 384, 2688 );
-mts::MTSSerial pcfc( USBTX, USBRX, 384, 2688 );
+mts::MTSSerial pcfc( USBTX, USBRX, 256, 2560 );
 
 uint8_t txPayload[TXRX_BUF_LEN] = { 0 };
 
@@ -158,7 +158,7 @@
 
 void uartCB( void )
 {
-    if( 0 != rts.read() )  pcfc.puts( "\r\n!RTS disengaged.\r\n" );  // Can we read rts when in HW fc mode?
+    if( 0 != rts.read() )  pcfc.puts( "\r\n!RTS disengaged.\r\n" );  // When not using HWFC.
 
     // Set line from serial port to RX characteristic (From cone)
     while( pcfc.readable() )