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:
Rafaël Carré 2010-09-08 05:16:40 +00:00
parent 8e0ff81d6f
commit 5aa5de5dc8

View file

@ -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) */