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_loop.c
- Revision:
- 149:5f4cb161cec3
- Parent:
- 131:4758606c9316
- Child:
- 152:a3d286bf94e5
diff -r 969fdb223792 -r 5f4cb161cec3 modules/pico_dev_loop.c --- a/modules/pico_dev_loop.c Tue Mar 11 15:34:51 2014 +0100 +++ b/modules/pico_dev_loop.c Wed Apr 09 14:31:41 2014 +0200 @@ -45,29 +45,22 @@ return loop_score; } -/* Public interface: create/destroy. */ - -void pico_loop_destroy(struct pico_device *dev) -{ - IGNORE_PARAMETER(dev); -} struct pico_device *pico_loop_create(void) { - struct pico_device *loop = pico_zalloc(sizeof(struct pico_device)); + struct pico_device *loop = PICO_ZALLOC(sizeof(struct pico_device)); if (!loop) return NULL; - if( 0 != pico_device_init((struct pico_device *)loop, "loop", NULL)) { + if( 0 != pico_device_init(loop, "loop", NULL)) { dbg ("Loop init failed.\n"); - pico_loop_destroy((struct pico_device *)loop); + pico_device_destroy(loop); return NULL; } loop->send = pico_loop_send; loop->poll = pico_loop_poll; - loop->destroy = pico_loop_destroy; dbg("Device %s created.\n", loop->name); - return (struct pico_device *)loop; + return loop; }