summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-08 05:16:40 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-08 05:16:40 +0000
commit5aa5de5dc898ede8738a32f10f82c27b89d25320 (patch)
tree7e86d06321afd369085f7eb89727ae5e97c8fe29 /firmware
parent8e0ff81d6f64554d762a237c75f1673a28480693 (diff)
downloadrockbox-5aa5de5dc898ede8738a32f10f82c27b89d25320.tar.gz
rockbox-5aa5de5dc898ede8738a32f10f82c27b89d25320.tar.bz2
rockbox-5aa5de5dc898ede8738a32f10f82c27b89d25320.zip
USB AMSv2: smaller struct usb_endpoint
- reorder members (largest members first) - int status -> int8_t status (we only use 0 or -1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28042 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c
index 9741a7b453..d4b24fba33 100644
--- a/firmware/target/arm/as3525/usb-drv-as3525v2.c
+++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c
@@ -60,12 +60,12 @@ static const uint8_t out_ep_list[NUM_OUT_EP + 1] = {0, OUT_EP_LIST};
/* store per endpoint, per direction, information */
struct usb_endpoint
{
- bool active; /* true is endpoint has been requested (true for EP0) */
unsigned int len; /* length of the data buffer */
+ struct wakeup complete; /* wait object */
+ int8_t status; /* completion status (0 for success) */
+ bool active; /* true is endpoint has been requested (true for EP0) */
bool wait; /* true if usb thread is blocked on completion */
bool busy; /* true is a transfer is pending */
- int status; /* completion status (0 for success) */
- struct wakeup complete; /* wait object */
};
/* state of EP0 (to correctly schedule setup packet enqueing) */