[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] LwIP and IAR Workbench
From: |
Zeder, Stacy |
Subject: |
RE: [lwip-users] LwIP and IAR Workbench |
Date: |
Tue, 19 Aug 2008 15:49:46 -0400 |
Jifl...
I looked for the files arch/bpstruct.h and arch/epstruct.h but don't
find them in the 1.3.0 distribution. Obviously I'm missing something.
Here's the download:
http://download.savannah.gnu.org/releases/lwip/lwip-1.3.0.zip I used.
Is there another place I should be looking?
...Stacy
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Jonathan Larmour
Sent: Tuesday, August 19, 2008 1:47 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP and IAR Workbench
FreeRTOS.org Info wrote:
> Everywhere there is a macro that aligns a struct you have to add in:
>
> #pragma data_alignment=4
>
> Everywhere there is a macro that packs a struct you have to add in:
>
> #pragma pack(1)
>
> Because they use a # you cannot simply define the macro
PACK_STRUCT_STRUCT
> to do this for you.
This is why lwIP also provides PACK_STRUCT_USE_INCLUDES and provide two
files: arch/bpstruct.h and arch/epstruct.h (begin packed struct and end
packed struct).
You can then put the #pragma pack(1) in bpstruct.h and #pragma
data_alignment=4 in epstruct.h.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos
experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223
245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------
Opinions==mine
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] LwIP and IAR Workbench, Zeder, Stacy, 2008/08/18
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/18
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/18
- RE: [lwip-users] LwIP and IAR Workbench, FreeRTOS.org Info, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/19
- RE: [lwip-users] LwIP and IAR Workbench, FreeRTOS.org Info, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Alain M., 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/19
- RE: [lwip-users] LwIP and IAR Workbench,
Zeder, Stacy <=
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/21