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

Re: [bluetooth-dev] Re: Porting to ARM



Erwin Authried wrote:

>
> I think a clean solution that solves the alignment- as well as
> the endianness problems is a rewrite that uses macros similar to the
> samba implementation:
>
> * instead of structures, make #defines of the byte offsets:
> #define xy 27
> #define ...
>
> * use macros to set/read values:
> SSVAL(buffer,xy,value) instead of buffer->xy=value
> and ... = SVAL(buffer,xy)
>
> There are a lot of changes necessary, but that's propably unavoidable for
> a really portable solution.
>
> Regards,
>
> Erwin

I've already started rewriting so that I can port the stack to a big-endian
processor. Anybody else interested in helping out?

--Gordon