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:
128:ae39e6e81531
Parent:
122:5b1e9de8bf7f
Child:
131:4758606c9316
--- a/modules/pico_igmp.c	Wed Dec 04 08:39:16 2013 +0000
+++ b/modules/pico_igmp.c	Thu Dec 05 08:31:32 2013 +0000
@@ -129,8 +129,8 @@
 struct igmp_timer {
   uint8_t type;
   uint8_t stopped;
-  uint32_t start;
-  uint32_t delay;
+  pico_time start;
+  pico_time delay;
   struct pico_ip4 mcast_link;
   struct pico_ip4 mcast_group;
   struct pico_frame *f;
@@ -212,7 +212,7 @@
   return 0;
 }
 
-static void pico_igmp_timer_expired(uint32_t now, void *arg)
+static void pico_igmp_timer_expired(pico_time now, void *arg)
 {
   struct igmp_timer *t = NULL, *timer = NULL, test = {0};
 
@@ -1076,7 +1076,7 @@
   if (!t)
     return -1;
 
-  time_to_run = t->start + t->delay - PICO_TIME_MS();
+  time_to_run = (uint32_t)(t->start + t->delay - PICO_TIME_MS());
   if ((p->max_resp_time * 100) < time_to_run) { /* max_resp_time in units of 1/10 seconds */
     t->delay = pico_rand() % (p->max_resp_time * 100u);
     pico_igmp_timer_reset(t);