summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-07 14:44:53 +0700
committerhathach <[email protected]>2013-04-07 14:44:53 +0700
commit3d8a4ef8c8b8d6778e2bea47e709822bb6a358b5 (patch)
tree55a2c1f720250bb584f8b70193bd7e72024434ee /tinyusb/class/hid.h
parent27f860db9ffd46bb8cb43046f9203f510a554d7c (diff)
remove hcd_port_reset before set address in enumeration
add test & implement tusbh_hid_mouse_is_supported
Diffstat (limited to 'tinyusb/class/hid.h')
-rw-r--r--tinyusb/class/hid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index 11018b422..cfc203034 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -90,12 +90,12 @@ typedef ATTR_PREPACKED struct ATTR_PACKED {
*
* Type define for a standard Boot Protocol Mouse report
*/
-typedef ATTR_PREPACKED struct
+typedef ATTR_PACKED_STRUCT(struct)
{
uint8_t buttons; /**< buttons mask for currently pressed buttons in the mouse. */
int8_t x; /**< Current delta x movement of the mouse. */
int8_t y; /**< Current delta y movement on the mouse. */
-} ATTR_PACKED tusb_mouse_report_t;
+} tusb_mouse_report_t;
/**
* \brief Standard HID Boot Protocol Keyboard Report.