In lwip/core/memp.c there is a function memp_init.
At the top of this function, there is a loop that initializes the
stats (if you have MEMP_STATS defined in your lwipopts.h file). You
can just add this line in that loop:
LWIP_PLATFORM_DIAG(("%d\t%d\t%s\n", memp_num[i], memp_sizes[i],
memp_desc[i]));
This line will print out all of the number of memp objects, the
sizes, and the English description. The mailboxes is one of these
memp objects.
If you don't have MEMP_STATS on in your lwipopts.h file, then just
add this code to the begginning of the memp_init function:
for (i = 0; i < MEMP_MAX; ++i) {
LWIP_PLATFORM_DIAG(("%d\t%d\t%s\n", memp_num[i], memp_sizes[i],
memp_desc[i]));
}
Rishi
On Aug 18, 2008, at 6:51 AM, Akshat Bisht wrote:
@rishi: could you be a little verbose on it, i failed to understand
what that particular code addition would do. I'm totally new to lwip.
Thanks
AB
On Mon, Aug 18, 2008 at 3:56 PM, <[EMAIL PROTECTED]> wrote:
In memp_init:memp.c add this line:
change this:
#if MEMP_STATS
for (i = 0; i < MEMP_MAX; ++i) {
printf("%d\t%d\t%s\n", memp_num[i],memp_sizes[i],memp_desc[i]);
lwip_stats.memp[i].used = lwip_stats.memp[i].max =
lwip_stats.memp[i].err = 0;
lwip_stats.memp[i].avail = memp_num[i];
}
#endif /* MEMP_STATS */
to this:
#if MEMP_STATS
for (i = 0; i < MEMP_MAX; ++i) {
LWIP_PLATFORM_DIAG(("%d\t%d\t%s\n", memp_num[i], memp_sizes[i],
memp_desc[i]));
lwip_stats.memp[i].used = lwip_stats.memp[i].max =
lwip_stats.memp[i].err = 0;
lwip_stats.memp[i].avail = memp_num[i];
}
#endif /* MEMP_STATS */
> Hello,
>
> I'm in the process of porting lwip to IAR's ARM workbench.
>
> I need to know what is the size of the mailboxes to be created
(i.e.
> size/mail and max no of mails/mail box).
>
> Also do i need to change the values in opt.h? if yes, that are
the typical
> values.
>
> Thanks a lot.
>
> AB
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users