From 9dbe7f2a8caaf7fb07f7b1d010562760bd62d185 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 22 Feb 2008 20:38:31 +0000 Subject: Improve usb descriptor handling. This should fix any cache and/or alignment related problem. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16371 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/usb_ch9.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/usb_ch9.h b/firmware/export/usb_ch9.h index d5885ac..4c272c3 100644 --- a/firmware/export/usb_ch9.h +++ b/firmware/export/usb_ch9.h @@ -227,7 +227,7 @@ struct usb_config_descriptor { uint8_t iConfiguration; uint8_t bmAttributes; uint8_t bMaxPower; -} __attribute__ ((packed)); +} __attribute__ ((packed,aligned(2))); #define USB_DT_CONFIG_SIZE 9 @@ -285,7 +285,7 @@ struct usb_endpoint_descriptor { /* use USB_DT_ENDPOINT*_SIZE in bLength, not sizeof. */ //uint8_t bRefresh; //uint8_t bSynchAddress; -} __attribute__ ((packed)); +} __attribute__ ((packed,aligned(2))); #define USB_DT_ENDPOINT_SIZE 7 #define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */ @@ -304,7 +304,7 @@ struct usb_qualifier_descriptor { uint8_t bMaxPacketSize0; uint8_t bNumConfigurations; uint8_t bRESERVED; -} __attribute__ ((packed)); +} __attribute__ ((packed,aligned(2))); /*-------------------------------------------------------------------------*/ -- cgit v1.1