Hi,
I'm working with at91sam7s256. Of course i'm using Keil. I want to align struct with bitfields one by one because a want to cast buffer on my struct and read data using that struct. the problem is that:
i made struct with attribute packed and then size of this struct is 18 bytes, without attribute packed size struct is 20 bytes, but struct should have got 16 bytes.
Can anyone help me? I dont know how to force Keil to compile this struct in one piece without unused fields betweed struct fields.