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:
89:49ca05d9a19e
Parent:
87:d45bc027b06d
Child:
103:eff282352d4c
Child:
113:f2f9b678d3fe
--- a/include/arch/pico_mbed.h	Mon Oct 07 06:51:23 2013 +0000
+++ b/include/arch/pico_mbed.h	Mon Oct 07 09:07:28 2013 +0000
@@ -24,9 +24,26 @@
 */
 
 #define dbg(...) 
+
+#ifdef PICO_MEASURE_STACK
+
+extern int freeStack;
+#define STACK_TOTAL_WORDS   1000u
+#define STACK_PATTERN       (0xC0CAC01A)
+
+void stack_fill_pattern(void *ptr);
+void stack_count_free_words(void *ptr);
+int stack_get_free_words(void);
+
+#endif
+
+
+
+
 #define pico_zalloc(x) calloc(x, 1)
 #define pico_free(x) free(x)
 
+
 #ifdef MEMORY_MEASURE // in case, comment out the two defines above me.
 extern uint32_t max_mem;
 extern uint32_t cur_mem;
@@ -42,7 +59,7 @@
     cur_mem += x;
     if (cur_mem > max_mem) {
         max_mem = cur_mem;
-        printf("max mem: %lu\n", max_mem);
+  //      printf("max mem: %lu\n", max_mem);
     }
     return (void*)(ptr + 1);
 }