Martin Velek wrote:
The problem is not a standard(C89) compiler, the problem is the
standard sprintf function. As you know the embedded system is limited
in source and full sprintf uses a lot of stack and ROM code. For this
reasons, there are many simple replacement of sprintf but of course
with
snip
with a limited functionality, e.g. only %s, %u, %c, %d...
snip
Because we haven't got a common standard which printf-formatters are
really portable and which aren't. And nearly no compiler warns about
unportable printf-formatters when adding them to the code :-(
Is it practical
Thank you for username.
It looks like to be correct.
I think that the most portable are thouse defined in cc.h. Anyway I am
trying to be consistent with
http://lwip.wikia.com/wiki/Porting_for_an_OS but it is quite hard if
the core is not.
Martin
On 7 March 2010 10:03, goldsi...@gmx.de
Martin Velek wrote:
I think that the most portable are thouse defined in cc.h. Anyway I am
trying to be consistent with
http://lwip.wikia.com/wiki/Porting_for_an_OS but it is quite hard if
the core is not.
Well, I think the wiki should follow the code, not the other way round.
I'm aware
Using 1.3.0, and trying to set a connection to listen. I'm using the code
below to set this up:
pcb_web = tcp_new();
tcp_bind(pcb_web, IP_ADDR_ANY, 80);
pcb_web = tcp_listen(pcb_web);
tcp_accept(pcb_web, http_accept);
tcp_recv(pcb_web, http_recv);
Before initiating a connection to lwIP, I see
JM wrote:
[..]
pcb_web = tcp_new();
tcp_bind(pcb_web, IP_ADDR_ANY, 80);
pcb_web = tcp_listen(pcb_web);
tcp_accept(pcb_web, http_accept);
tcp_recv(pcb_web, http_recv);
[..]
Everytime I send data to lwIP, I see a similar output, but http_recv still
doesn't get called. What could I be doing