Tool/software: TI C/C++ Compiler
how to declare a packed struct in tivac?
like:
struct __packed struct {
uint8_t data0;
uint8_t data1;
uint32_t data2;
uint8_t data5;
uint8_t data6[8];
uint8_t data7;
};
thanks
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.
Tool/software: TI C/C++ Compiler
how to declare a packed struct in tivac?
like:
struct __packed struct {
uint8_t data0;
uint8_t data1;
uint32_t data2;
uint8_t data5;
uint8_t data6[8];
uint8_t data7;
};
thanks
Please search the ARM compiler manual for the sub-chapters titled The pack Pragma and Variable Attributes.
Thanks and regards,
-George