Free (GPLv2) TCP/IP stack developed by TASS Belgium

Dependents:   lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more

PicoTCP. Copyright (c) 2013 TASS Belgium NV.

Released under the GNU General Public License, version 2.

Different licensing models may exist, at the sole discretion of the Copyright holders.

Official homepage: http://www.picotcp.com

Bug tracker: https://github.com/tass-belgium/picotcp/issues

Development steps:

  • initial integration with mbed RTOS
  • generic mbed Ethernet driver
  • high performance NXP LPC1768 specific Ethernet driver
  • Multi-threading support for mbed RTOS
  • Berkeley sockets and integration with the New Socket API
  • Fork of the apps running on top of the New Socket API
  • Scheduling optimizations
  • Debugging/benchmarking/testing

Demo application (measuring TCP sender performance):

Import programlpc1768-picotcp-demo

A PicoTCP demo app testing the ethernet throughput on the lpc1768 mbed board.

Revision:
42:13e557b44f68
Parent:
41:4c18c62b31b9
Child:
43:5f2146814b83
--- a/EthernetInterface/EthernetInterface.cpp	Tue Jul 16 07:41:44 2013 +0000
+++ b/EthernetInterface/EthernetInterface.cpp	Wed Jul 17 07:28:27 2013 +0000
@@ -41,6 +41,8 @@
 #include "pico_dhcp_client.h"
 #include "pico_dns_client.h"
 
+#define eth_dbg(...)
+
 void (*linkCb)(uint32_t link) = NULL;
 }
 
@@ -63,7 +65,7 @@
     void *id = NULL;
     struct pico_ip4 address, gateway, zero = {};
     
-    if (PICO_DHCP_SUCCESS != code)
+    if (PICO_DHCP_ERROR == code)
         goto fail;
         
     id = pico_dhcp_get_identifier(dhcp_xid);
@@ -87,7 +89,7 @@
     return;
     
 fail:
-    printf("DHCP request failed!\n");
+    eth_dbg("DHCP request failed!\n");
     dhcp_retval = -1;
     dhcp_mx.unlock();
 }
@@ -107,9 +109,9 @@
     }
     
     if(lpc_eth)
-        printf("Ethernet initialized...\n");
+        eth_dbg("Ethernet initialized...\n");
     else
-        printf("Failed to start Ethernet...\n");
+        eth_dbg("Failed to start Ethernet...\n");
        
 }