We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b653c3c commit 2fe6b74Copy full SHA for 2fe6b74
atmel-samd/asf/common/services/usb/class/hid/device/mouse/udi_hid_mouse.c
@@ -119,6 +119,12 @@ static bool udi_hid_mouse_setreport(void);
119
//@}
120
121
//! HID report descriptor for standard HID mouse
122
+//*** CircuitPython: added COMPILER_WORD_ALIGNED to ensure descriptor is word aligned.
123
+// Without this, descriptor sent to host was garbled.
124
+// It appears this is necessary but frequently omitted in UDC_DESC_STORAGE declarations
125
+// in ASF code.
126
+// See comments about buffer alignment in asf/common/services/usb/udc/udd.h
127
+COMPILER_WORD_ALIGNED
128
UDC_DESC_STORAGE udi_hid_mouse_report_desc_t udi_hid_mouse_report_desc = {
129
{
130
0x05, 0x01, /* Usage Page (Generic Desktop), */
0 commit comments