A PicoTCP driver for the lpc1768 mbed board
Dependents: lpc1768-picotcp-demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test TCPSocket_HelloWorld_PicoTCP ... more
Diff: pico_dev_mbed_emac.cpp
- Revision:
- 9:1ef61e7465a5
- Parent:
- 8:0b675bdd074f
- Child:
- 10:7b931f77f39a
--- a/pico_dev_mbed_emac.cpp Tue Jul 16 06:57:10 2013 +0000 +++ b/pico_dev_mbed_emac.cpp Thu Jul 25 11:46:04 2013 +0000 @@ -549,7 +549,10 @@ Thread::wait(1); if((LPC_EMAC->TxConsumeIndex -1)== LPC_EMAC->TxProduceIndex) + { + printf("Failed to send frame !\n"); return 0; + } else bufferIndex = LPC_EMAC->TxProduceIndex; //printf("p%i c%i stat:%d\r\n",prod,cons,LPC_EMAC->TxStatus);