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.
Revision 50:8c79c30b48e3, committed 2013-08-06
- Comitter:
- tass
- Date:
- Tue Aug 06 08:04:03 2013 +0000
- Parent:
- 49:4b404dd2c97a
- Child:
- 51:ab4529a384a6
- Child:
- 52:44834aeeec18
- Commit message:
- Optimized scheduler when stack is idle.
Changed in this revision
Socket/bsd/stack_endpoint.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/bsd/stack_endpoint.cpp Mon Aug 05 12:58:56 2013 +0000 +++ b/Socket/bsd/stack_endpoint.cpp Tue Aug 06 08:04:03 2013 +0000 @@ -19,7 +19,10 @@ //#define ptsock_dbg mbed_dbg #define ptsock_dbg(...) +#define SCHEDULER_BASE 4u +#define SCHEDULER_MAX 10u +int scheduler_timeout = 0; int in_the_stack = 0; Mutex *PicoTcpLock; Queue<void,32> *PicoTcpEvents; @@ -450,12 +453,15 @@ struct pico_device *dev; while(1) { - osEvent evt = PicoTcpEvents->get(5); + osEvent evt = PicoTcpEvents->get(SCHEDULER_BASE<<scheduler_timeout); if (evt.status == osEventMessage) { dev = (struct pico_device *)evt.value.p; + scheduler_timeout = 0; } else { dev = NULL; + if(scheduler_timeout < SCHEDULER_MAX) + scheduler_timeout++; } PicoTcpLock->lock(); if (dev && dev->dsr)