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"
|
||||
#include "usb_api.h"
|
||||
#include "usb_descriptors/usb_descriptor_basic_keyboard_report.h"
|
||||
|
||||
@@ -26,7 +27,7 @@
|
||||
uint8_t modifiers;
|
||||
uint8_t reserved; // Always must be 0
|
||||
uint8_t scancodes[USB_BASIC_KEYBOARD_MAX_KEYS];
|
||||
} __attribute__ ((packed)) usb_basic_keyboard_report_t;
|
||||
} ATTR_PACKED usb_basic_keyboard_report_t;
|
||||
|
||||
// Variables:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user