This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to pack structs?

I'm using the Keil uVision3. How do I pack structs?

Do I use __packed or is there a pragma?

is this correct? it doesn't compile...

typedef struct
{ UINT8 key_diff; UINT8 key_state;
} __packed SCmd_KeyPress;

0