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 RTOSgeneric mbed Ethernet driverhigh performance NXP LPC1768 specific Ethernet driverMulti-threading support for mbed RTOSBerkeley sockets and integration with the New Socket APIFork of the apps running on top of the New Socket APIScheduling 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.
Diff: modules/pico_dev_mbed.cpp
- Revision:
- 134:cc4e6d2654d9
- Parent:
- 124:a6ecd840c965
--- a/modules/pico_dev_mbed.cpp Thu Jan 16 10:13:37 2014 +0100 +++ b/modules/pico_dev_mbed.cpp Thu Jan 16 14:46:07 2014 +0100 @@ -27,7 +27,6 @@ static int pico_mbed_send(struct pico_device *dev, void *buf, int len) { int ret, sent; - struct pico_device_mbed *mb = (struct pico_device_mbed *) dev; if (len > ETH_MTU) return -1; @@ -46,17 +45,16 @@ static int pico_mbed_poll(struct pico_device *dev, int loop_score) { int len; - struct pico_device_mbed *mb = (struct pico_device_mbed *) dev; - + while(loop_score > 0) { /* check for new frame(s) */ len = (int) ethernet_receive(); - + /* return if no frame has arrived */ if (!len) return loop_score; - + /* read and process frame */ len = ethernet_read((char*)buf, ETH_MTU); printf("ETH> recv %d bytes: %x:%x\r\n", len, buf[0],buf[1]); @@ -113,4 +111,4 @@ ethernet_address(mac); } -} \ No newline at end of file +}