Andriy Makukha
/
football_project_wo_output
football_project_wo_output
Fork of football_project by
Diff: main.cpp
- Revision:
- 9:95dc84e9fb7f
- Parent:
- 8:d5d055be2bb8
- Child:
- 10:72ceef287b0f
diff -r d5d055be2bb8 -r 95dc84e9fb7f main.cpp --- a/main.cpp Sat Apr 18 22:14:18 2015 +0000 +++ b/main.cpp Sun Apr 19 19:59:46 2015 +0000 @@ -65,7 +65,7 @@ // 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, 256, 2560 ); +mts::MTSSerial pcfc( USBTX, USBRX, 256, 2560, RTS_PIN_NUMBER, NC ); uint8_t txPayload[TXRX_BUF_LEN] = { 0 }; @@ -74,7 +74,7 @@ DigitalOut led1( LED1 ); -DigitalOut rts( RTS_PIN_NUMBER ); +// DigitalOut rts( RTS_PIN_NUMBER ); char deviceName[6]; // "TAF00"; @@ -158,7 +158,7 @@ void uartCB( void ) { - if( 0 != rts.read() ) pcfc.puts( "\r\n!RTS disengaged.\r\n" ); // When not using HWFC. +// 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() )