summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/as3525v2.h7
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.c4
2 files changed, 1 insertions, 10 deletions
diff --git a/firmware/export/as3525v2.h b/firmware/export/as3525v2.h
index b983ad712a..e0c13df757 100644
--- a/firmware/export/as3525v2.h
+++ b/firmware/export/as3525v2.h
@@ -34,16 +34,9 @@
#define CGU_SDSLOT (*(volatile unsigned long *)(CGU_BASE + 0x3C))
-#ifdef USB_NUM_ENDPOINTS
#undef USB_NUM_ENDPOINTS
-#endif
-
-#ifdef USB_DEVBSS_ATTR
-#undef USB_DEVBSS_ATTR
-#endif
#define USB_NUM_ENDPOINTS 6
-#define USB_DEVBSS_ATTR __attribute__((aligned(32)))
#define CCU_USB (*(volatile unsigned long *)(CCU_BASE + 0x20))
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c
index 2dfc69b580..433606f6d0 100644
--- a/firmware/target/arm/as3525/usb-drv-as3525v2.c
+++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c
@@ -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;