summaryrefslogtreecommitdiff
path: root/firmware/usbstack
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbstack')
-rw-r--r--firmware/usbstack/usb_core.c6
-rw-r--r--firmware/usbstack/usb_storage.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index 50c9d8589c..5fac5d3815 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -175,7 +175,7 @@ static struct
175 completion_handler_t completion_handler[2]; 175 completion_handler_t completion_handler[2];
176 control_handler_t control_handler[2]; 176 control_handler_t control_handler[2];
177 struct usb_transfer_completion_event_data completion_event; 177 struct usb_transfer_completion_event_data completion_event;
178} ep_data[NUM_ENDPOINTS]; 178} ep_data[USB_NUM_ENDPOINTS];
179 179
180static struct usb_class_driver drivers[USB_NUM_DRIVERS] = 180static struct usb_class_driver drivers[USB_NUM_DRIVERS] =
181{ 181{
@@ -240,7 +240,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] =
240 240
241static void usb_core_control_request_handler(struct usb_ctrlrequest* req); 241static void usb_core_control_request_handler(struct usb_ctrlrequest* req);
242 242
243static unsigned char response_data[256] USBDEVBSS_ATTR; 243static unsigned char response_data[256] USB_DEVBSS_ATTR;
244 244
245 245
246static short hex[16] = {'0','1','2','3','4','5','6','7', 246static short hex[16] = {'0','1','2','3','4','5','6','7',
@@ -476,7 +476,7 @@ static void allocate_interfaces_and_endpoints(void)
476 476
477 memset(ep_data,0,sizeof(ep_data)); 477 memset(ep_data,0,sizeof(ep_data));
478 478
479 for (i = 0; i < NUM_ENDPOINTS; i++) { 479 for (i = 0; i < USB_NUM_ENDPOINTS; i++) {
480 usb_drv_release_endpoint(i | USB_DIR_OUT); 480 usb_drv_release_endpoint(i | USB_DIR_OUT);
481 usb_drv_release_endpoint(i | USB_DIR_IN); 481 usb_drv_release_endpoint(i | USB_DIR_IN);
482 } 482 }
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index a70681d3e0..e2d58cf0a9 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -401,7 +401,7 @@ void usb_storage_init_connection(void)
401#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \ 401#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \
402 defined(CPU_TCC77X) || defined(CPU_TCC780X) 402 defined(CPU_TCC77X) || defined(CPU_TCC780X)
403 static unsigned char _transfer_buffer[BUFFER_SIZE*2] 403 static unsigned char _transfer_buffer[BUFFER_SIZE*2]
404 USBDEVBSS_ATTR __attribute__((aligned(32))); 404 USB_DEVBSS_ATTR __attribute__((aligned(32)));
405 tb.transfer_buffer = (void *)_transfer_buffer; 405 tb.transfer_buffer = (void *)_transfer_buffer;
406#else 406#else
407 /* TODO : check if bufsize is at least 32K ? */ 407 /* TODO : check if bufsize is at least 32K ? */