mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
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
This commit is contained in:
parent
8e0ff81d6f
commit
5aa5de5dc8
1 changed files with 3 additions and 3 deletions
|
|
@ -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 */
|
/* store per endpoint, per direction, information */
|
||||||
struct usb_endpoint
|
struct usb_endpoint
|
||||||
{
|
{
|
||||||
bool active; /* true is endpoint has been requested (true for EP0) */
|
|
||||||
unsigned int len; /* length of the data buffer */
|
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 wait; /* true if usb thread is blocked on completion */
|
||||||
bool busy; /* true is a transfer is pending */
|
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) */
|
/* state of EP0 (to correctly schedule setup packet enqueing) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue