public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problems with application to use lwIP
@ 2007-10-12 10:33 Øyvind Harboe
  2007-10-12 12:26 ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Øyvind Harboe @ 2007-10-12 10:33 UTC (permalink / raw)
  To: eCos Discussion

I'm trying to use lwIP, but I run into problems because lwIP uses
macros, e.g. #define read(a,b,c), which screws things up. I've seen
some posts about people wishing for/thinking about making lwIP more
compatible with a "standard" eCos TCP/IP stack.

Rather than try to adapt the code that is going to use lwIP(it
currently uses eCos FreeBSD + POSIX) or changing lwIP, I was wondering
if I could somehow pull off the following:

- Use the standard include files from eCos instead of lwIP include
files so application continues to compile fine.
- Link w/lwIP only instead of trying to compile with it.

This would require adding a .c file that implemented functions that
used the lwIP include files and exported function calls that were
compatible with lwIP.

Any thoughts on this approach?

lwIP is attractive to us as it is small enough to fit into the fastest
RAM available for our project, we do have enough RAM for FreeBSD, but
it is dog slow as it needs to use DRAM instead of SRAM.

-- 
Øyvind Harboe
http://www.zylin.com - eCos ARM & FPGA  developer kit

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-13 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12 10:33 [ECOS] Problems with application to use lwIP Øyvind Harboe
2007-10-12 12:26 ` Andrew Lunn
2007-10-12 20:08   ` Øyvind Harboe
2007-10-12 21:03     ` Andrew Lunn
2007-10-13  7:50       ` Øyvind Harboe
2007-10-13 15:06         ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).