diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-08 05:16:40 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-08 05:16:40 +0000 |
commit | 5aa5de5dc898ede8738a32f10f82c27b89d25320 (patch) | |
tree | 7e86d06321afd369085f7eb89727ae5e97c8fe29 /firmware | |
parent | 8e0ff81d6f64554d762a237c75f1673a28480693 (diff) | |
download | rockbox-5aa5de5dc898ede8738a32f10f82c27b89d25320.tar.gz 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.c | 6 |
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}; | |||
60 | /* store per endpoint, per direction, information */ | 60 | /* store per endpoint, per direction, information */ |
61 | struct usb_endpoint | 61 | struct usb_endpoint |
62 | { | 62 | { |
63 | bool active; /* true is endpoint has been requested (true for EP0) */ | ||
64 | unsigned int len; /* length of the data buffer */ | 63 | unsigned int len; /* length of the data buffer */ |
64 | struct wakeup complete; /* wait object */ | ||
65 | int8_t status; /* completion status (0 for success) */ | ||
66 | bool active; /* true is endpoint has been requested (true for EP0) */ | ||
65 | bool wait; /* true if usb thread is blocked on completion */ | 67 | bool wait; /* true if usb thread is blocked on completion */ |
66 | bool busy; /* true is a transfer is pending */ | 68 | bool busy; /* true is a transfer is pending */ |
67 | int status; /* completion status (0 for success) */ | ||
68 | struct wakeup complete; /* wait object */ | ||
69 | }; | 69 | }; |
70 | 70 | ||
71 | /* state of EP0 (to correctly schedule setup packet enqueing) */ | 71 | /* state of EP0 (to correctly schedule setup packet enqueing) */ |