diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-02-29 18:33:54 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-02-29 18:33:54 +0000 |
| commit | f712c7ff361c327376f9773d34be02428e01e080 (patch) | |
| tree | e54f3fb8d002395c1175bf5d54535dfbafafb8e7 /firmware/export | |
| parent | d6adda13566cc71d1ca931eb95b117dcbcd54998 (diff) | |
| download | rockbox-f712c7ff361c327376f9773d34be02428e01e080.zip rockbox-f712c7ff361c327376f9773d34be02428e01e080.tar.gz rockbox-f712c7ff361c327376f9773d34be02428e01e080.tar.bz2 rockbox-f712c7ff361c327376f9773d34be02428e01e080.tar.xz | |
fix alignment and packed-ness of USB structs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/usb_ch9.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/usb_ch9.h b/firmware/export/usb_ch9.h index 4c272c3..1bfc152 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,aligned(2))); +} __attribute__ ((packed)); #define USB_DT_CONFIG_SIZE 9 @@ -245,7 +245,7 @@ struct usb_string_descriptor { uint8_t bDescriptorType; uint16_t wString[]; /* UTF-16LE encoded */ -} __attribute__ ((packed,aligned(2))); +} __attribute__ ((packed)); /* note that "string" zero is special, it holds language codes that * the device supports, not Unicode characters. @@ -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,aligned(2))); +} __attribute__ ((packed)); #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,aligned(2))); +} __attribute__ ((packed)); /*-------------------------------------------------------------------------*/ |