Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// Includes:
|
||||
|
||||
#include "fsl_common.h"
|
||||
#include "attributes.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
@@ -38,7 +39,7 @@
|
||||
uint8_t length;
|
||||
uint16_t crc;
|
||||
uint8_t data[I2C_MESSAGE_MAX_PAYLOAD_LENGTH];
|
||||
} __attribute__ ((packed)) i2c_message_t;
|
||||
} ATTR_PACKED i2c_message_t;
|
||||
|
||||
// Variables:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user