Content originally posted in LPCWare by SolomonViveros on Wed Jul 14 10:55:29 MST 2010 I'm use to Keil's #pragma pack(push,1)/#pragma pack(pop) directives...how/where is the structure packing defined in the LPCXpresso IDE?
Content originally posted in LPCWare by whitecoe on Wed Jul 14 12:56:46 MST 2010 Not tried this in LPCXPresso, but the GCC docs suggest that #pragma pack is supported by the compiler....
Content originally posted in LPCWare by CodeRedSupport on Wed Jul 14 12:32:12 MST 2010 You can pack individual structures with [COLOR=red]__attribute__((__packed__))[/COLOR]
I suggest that the best way to use this is something like this: