This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Packed structs in CCE

Hi,

 I have just started playing with CCE 3.0 and have a question regarding packing of C-language structures.

With IAR we use the pragma below to pack a structure, what would the equivalent be using CCE? Without the default settings, CCE insert padding bytes before the 8-bit variables, I want to avoid this.

#ifdef __ICC430__

#pragma pack(1)

#endif

typedef struct {

uint8 packetLength;

uint16 frameControlField;

uint8 seqNumber;

uint16 panId;

uint16 destAddr;

uint16 srcAddr;

#ifdef SECURITY_CCM

uint8 securityControl;

uint32 frameCounter;

#endif

} basicRfPktHdr_t;

#ifdef __ICC430__

#pragma pack()

#endif

**Attention** This is a public forum