summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-02-22 20:38:31 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-02-22 20:38:31 +0000
commit9dbe7f2a8caaf7fb07f7b1d010562760bd62d185 (patch)
tree7f90f9038cd3eb347ce707cb4973f5c4b28b94f5 /firmware/export
parenta0b5780e2d7731eb06c9882d103f87ae9064f2eb (diff)
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
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/usb_ch9.h6
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 {
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)));
/*-------------------------------------------------------------------------*/