Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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_stack.c
- Revision:
- 138:0a7a449980e6
- Parent:
- 137:a1c8bfa9d691
- Child:
- 149:5f4cb161cec3
diff -r a1c8bfa9d691 -r 0a7a449980e6 stack/pico_stack.c
--- a/stack/pico_stack.c Fri Feb 07 11:21:12 2014 +0100
+++ b/stack/pico_stack.c Fri Feb 07 11:24:45 2014 +0100
@@ -542,7 +542,6 @@
struct pico_timer
{
- pico_time expire;
void *arg;
void (*timer)(pico_time timestamp, void *arg);
};
@@ -597,12 +596,6 @@
}
}
-pico_time pico_timer_get_expire(struct pico_timer *t)
-{
- return t->expire;
-}
-
-
#define PROTO_DEF_NR 11
#define PROTO_DEF_AVG_NR 4
#define PROTO_DEF_SCORE 32
@@ -815,24 +808,21 @@
t->arg = arg;
t->timer = timer;
tref.tmr = t;
- heap_insert(Timers, &tref);
#ifdef JENKINS_DEBUG
//jenkins_dbg("pico_timer_add: now have %d \t caller: %p\n", Timers->n, __builtin_return_address(0));
tref.caller = __builtin_return_address(0);
#endif
+ heap_insert(Timers, &tref);
if (Timers->n > PICO_MAX_TIMERS) {
/* dbg("Warning: I have %d timers\n", Timers->n); */
#ifdef JENKINS_DEBUG
{
- struct pico_timer *tmr;
struct pico_timer_ref *trf = heap_first(Timers);
int timer_it = 1;
for (timer_it = 1; timer_it <= Timers->n; timer_it++)
{
trf = &Timers->top[timer_it];
- tmr = trf->tmr;
- //if (tmr && tmr->caller)
- jenkins_dbg("timer %d [%p] - caller: %p - exp:%lu\n",Timers->n - timer_it , tmr, trf->caller,(uint32_t)(trf->expire - PICO_TIME_MS()));
+ jenkins_dbg("timer %d [%p] - cb:%p\n",Timers->n - timer_it, trf->tmr, trf->caller,(trf->tmr->timer));
}
}
#endif
