diff options
| author | hathach <[email protected]> | 2015-05-01 18:34:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2015-05-01 18:34:08 +0700 |
| commit | 9218d1e8bb9fd6cb37358c9e08f6ff9849c6110c (patch) | |
| tree | 902d45c86f4f28564e620217cc8a5810a37ba443 /tinyusb/class/hid.h | |
| parent | 6dbd580b5398cf9e7a4b847b77539fe3f9ae9558 (diff) | |
replace ATTR_PACKED_STRUCT by simply ATTR_PACKED (drop IAR support)
remove "primitive_types.h" by simply include stdbool.h, stdint.h
Diffstat (limited to 'tinyusb/class/hid.h')
| -rw-r--r-- | tinyusb/class/hid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h index c95cfa245..2a94bc9d2 100644 --- a/tinyusb/class/hid.h +++ b/tinyusb/class/hid.h @@ -93,7 +93,7 @@ typedef enum { }hid_request_type_t;
/// USB HID Descriptor
-typedef ATTR_PACKED_STRUCT(struct) {
+typedef struct ATTR_PACKED {
uint8_t bLength; /**< Numeric expression that is the total size of the HID descriptor */
uint8_t bDescriptorType; /**< Constant name specifying type of HID descriptor. */
@@ -155,7 +155,7 @@ typedef enum * @{ */
/// Standard HID Boot Protocol Mouse Report.
-typedef ATTR_PACKED_STRUCT(struct)
+typedef struct ATTR_PACKED
{
uint8_t buttons; /**< buttons mask for currently pressed buttons in the mouse. */
int8_t x; /**< Current delta x movement of the mouse. */
@@ -179,7 +179,7 @@ typedef enum { * @{ */
/// Standard HID Boot Protocol Keyboard Report.
-typedef ATTR_PACKED_STRUCT(struct)
+typedef struct ATTR_PACKED
{
uint8_t modifier; /**< Keyboard modifier byte, indicating pressed modifier keys (a combination of HID_KEYBOARD_MODIFER_* masks). */
uint8_t reserved; /**< Reserved for OEM use, always set to 0. */
|
