lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Little endian


From: Sergio R. Caprile
Subject: Re: [lwip-users] Little endian
Date: Thu, 26 Jun 2014 13:09:30 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hi Fabian,
for clarity's sake:

lwIP uses internally its own representation, and there are macros to
convert from network format to host format. I guess all systems are more
or less like that.

You are supposed to have a fast macro, preferably with machine code
instructions, because it is going to be used a lot. That should be a
part of your arch port.
Have a look at (or just use) my ARM Cortex-M generic (CMSIS) port:
http://scaprile.ldir.com.ar/cms/category/os/lwip-port
and also have a look at my ethernet code to see how it uses that macro:
http://scaprile.ldir.com.ar/cms/el-ingeniero/open-source-projects-im-working-on/

Regards



reply via email to

[Prev in Thread] Current Thread [Next in Thread]