Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability.

This commit is contained in:
László Monda
2017-10-04 22:26:48 +02:00
parent f348aec97a
commit 4295793fb9
12 changed files with 40 additions and 23 deletions

View File

@@ -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: