AnsweredAssumed Answered

how to align a char table to 32bit boundry

Question asked by T J on Feb 9, 2018
Latest reply on Feb 9, 2018 by AvaTar

How can I force a char array to align 4 ?

 

 

//align 4;
char LoRaTxFrames[8][64];  
char LoRaRxFrames[8][64];

 

is this a correct method ?

 


char LoRaTxFrames[8][64];  __attribute__((packed, aligned(4)))
char LoRaRxFrames[8][64];  __attribute__((packed, aligned(4)))

Outcomes