but a #ifdef structure could be made around both options...
Alain
FreeRTOS.org Info escreveu:
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.
Regards,
Richard.
+ http://www.FreeRTOS.org
17 official architecture ports, more than 6000 downloads per month.
+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety related systems.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Akshat Bisht
Sent: 19 August 2008 07:31
To: Mailing list for lwIP users
Subject: Re: [lwip-users] LwIP and IAR Workbench
@Richard: Yes there were errors in the PACK_STRUCT part,
i changed:
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
to
#define PACK_STRUCT_STRUCT
It compiles without errors now, but i seriously doubt if what
was a solution. Can you provide more guidance?
Regards,
AB
On Tue, Aug 19, 2008 at 11:49 AM, FreeRTOS.org Info
<[EMAIL PROTECTED]> wrote:
>
> I am new to LwIP and am trying to port it into IAR's
> Workbench.
Another thing to watch out for with IAR is the pragmas
that are required to
pack and align structures. These cannot be added in
using the pack/align
macros so must be edited into the code manually - at
least this is the only
way I have found of doing it.
Regards,
Richard.
+ http://www.FreeRTOS.org
17 official architecture ports, more than 6000
downloads per month.
+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety
related systems.
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users