lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] Little/Big -endian


From: Mikael Lundberg
Subject: [lwip-users] Re: [lwip] Little/Big -endian
Date: Wed, 08 Jan 2003 22:26:18 -0000

Quoting Horst Garnetzke <address@hidden>:

Oooops, thanks to your reply, I discovered a lot of changes between ver 0.5.0 
(until now my version =) and ver 0.5.1  ...

One important one, is of course that I only have to change at one place for 
changing byte-order.

thanks.
//MIkael

> Hi Mikael,
> 
> I'm running lwip with motorola 68302 processor (big endian).
> 
> Mikael Lundberg wrote:
> 
> > Hi.
> > If I want to change to Big endian, what changes will I have to do?
> > My changes so far is:
> > 
> > In the file cpu.h;
> > #define BYTE_ORDER BIG_ENDIAN
> > 
> 
> 
> yes
> 
> 
> > In the file lib.c, I have change the two following functions...
> [snip]
> 
> 
> No need for any changes! Have a look at inet.h:
> for BIG_ENDIAN you will find there define's like
>    #define htons(n)  (n)
> 
> So lib.c will not be included in the linker process with big endian.
> 
> 
> /Horst
> 
> -- 
> Horst Garnetzke                      address@hidden
> PULSAR GmbH,  Sorbenstrasse 45,   D-20537 Hamburg
> ++49 40 251546-11 (-17 FAX)  http://www.pulsar.de
> 
> [This message was sent through the lwip discussion list.]
> 
[This message was sent through the lwip discussion list.]




reply via email to

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