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: stack/pico_device.c
- Revision:
- 70:cd218dd180e5
- Parent:
- 68:0847e35d08a6
- Child:
- 73:dfb737147f6e
--- a/stack/pico_device.c Wed Sep 25 12:20:39 2013 +0000 +++ b/stack/pico_device.c Thu Sep 26 07:05:22 2013 +0000 @@ -29,7 +29,7 @@ int pico_device_init(struct pico_device *dev, const char *name, uint8_t *mac) { - int len = strlen(name); + uint32_t len = strlen(name); if(len>MAX_DEVICE_NAME) len = MAX_DEVICE_NAME; memcpy(dev->name, name, len); @@ -218,10 +218,10 @@ return NULL; } -int pico_device_broadcast(struct pico_frame * f) +int32_t pico_device_broadcast(struct pico_frame * f) { struct pico_tree_node * index; - int ret = -1; + int32_t ret = -1; pico_tree_foreach(index,&Device_tree) { @@ -238,7 +238,7 @@ } else { - ret = f->dev->send(f->dev, f->start, f->len); + ret = (int32_t)f->dev->send(f->dev, f->start, f->len); } }