diff options
Diffstat (limited to 'firmware/export/usb_ch9.h')
-rw-r--r-- | firmware/export/usb_ch9.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/usb_ch9.h b/firmware/export/usb_ch9.h index d5885ac9b8..4c272c338a 100644 --- a/firmware/export/usb_ch9.h +++ b/firmware/export/usb_ch9.h | |||
@@ -227,7 +227,7 @@ struct usb_config_descriptor { | |||
227 | uint8_t iConfiguration; | 227 | uint8_t iConfiguration; |
228 | uint8_t bmAttributes; | 228 | uint8_t bmAttributes; |
229 | uint8_t bMaxPower; | 229 | uint8_t bMaxPower; |
230 | } __attribute__ ((packed)); | 230 | } __attribute__ ((packed,aligned(2))); |
231 | 231 | ||
232 | #define USB_DT_CONFIG_SIZE 9 | 232 | #define USB_DT_CONFIG_SIZE 9 |
233 | 233 | ||
@@ -285,7 +285,7 @@ struct usb_endpoint_descriptor { | |||
285 | /* use USB_DT_ENDPOINT*_SIZE in bLength, not sizeof. */ | 285 | /* use USB_DT_ENDPOINT*_SIZE in bLength, not sizeof. */ |
286 | //uint8_t bRefresh; | 286 | //uint8_t bRefresh; |
287 | //uint8_t bSynchAddress; | 287 | //uint8_t bSynchAddress; |
288 | } __attribute__ ((packed)); | 288 | } __attribute__ ((packed,aligned(2))); |
289 | 289 | ||
290 | #define USB_DT_ENDPOINT_SIZE 7 | 290 | #define USB_DT_ENDPOINT_SIZE 7 |
291 | #define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */ | 291 | #define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */ |
@@ -304,7 +304,7 @@ struct usb_qualifier_descriptor { | |||
304 | uint8_t bMaxPacketSize0; | 304 | uint8_t bMaxPacketSize0; |
305 | uint8_t bNumConfigurations; | 305 | uint8_t bNumConfigurations; |
306 | uint8_t bRESERVED; | 306 | uint8_t bRESERVED; |
307 | } __attribute__ ((packed)); | 307 | } __attribute__ ((packed,aligned(2))); |
308 | 308 | ||
309 | /*-------------------------------------------------------------------------*/ | 309 | /*-------------------------------------------------------------------------*/ |
310 | 310 | ||