[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] arch for ARM (GCC)
From: |
Craig Graham |
Subject: |
Re: [lwip-users] arch for ARM (GCC) |
Date: |
Thu, 29 Jun 2006 10:31:48 +0100 |
User-agent: |
KMail/1.8.2 |
On Wednesday 28 June 2006 14:47, Jonas L wrote:
> Hi,
>
> Where can I find the arch files for running lwIP on an ARM7 using GCC? (no
> OS)
>
> If there is no suitable file, I need some tips about how to set up these
> defines to make the structs work:
> PACK_STRUCT_BEGIN
> PACK_STRUCT_STRUCT
> PACK_STRUCT_END
>
> /Jonas
The usual GCC stuff works. ie:
#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
I believe the BEGIN/END stuff doesn't apply to GCC, so the above definition is
fine.
(I've tested this with GCC on PPC405, and ARM920T)
Craig.