mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
as3525v2: revert the USB_DEVBSS_ATTR and the panicf redefinition, don't protected #undef of USB_NUM_ENDPOINTS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27987 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e09a0857e8
commit
f3da8d0ee3
2 changed files with 1 additions and 10 deletions
|
|
@ -36,8 +36,6 @@
|
|||
#include "usb-drv-as3525v2.h"
|
||||
#include "usb_core.h"
|
||||
|
||||
#define panicf(...) ({logf(__VA_ARGS__); DCTL |= DCTL_sftdiscon; /* disconnect */})
|
||||
|
||||
static int __in_ep_list[NUM_IN_EP] = {IN_EP_LIST};
|
||||
static int __out_ep_list[NUM_OUT_EP] = {OUT_EP_LIST};
|
||||
static int __in_ep_list_ep0[NUM_IN_EP + 1] = {0, IN_EP_LIST};
|
||||
|
|
@ -101,7 +99,7 @@ enum ep0state
|
|||
/* endpoints[ep_num][DIR_IN/DIR_OUT] */
|
||||
static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS][2];
|
||||
/* setup packet for EP0 */
|
||||
static struct usb_ctrlrequest ep0_setup_pkt USB_DEVBSS_ATTR;
|
||||
static struct usb_ctrlrequest ep0_setup_pkt __attribute__((aligned(32)));
|
||||
/* state of EP0 */
|
||||
static enum ep0state ep0_state;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue