diff options
Diffstat (limited to 'firmware/usbstack')
| -rw-r--r-- | firmware/usbstack/usb_core.c | 6 | ||||
| -rw-r--r-- | firmware/usbstack/usb_storage.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index 50c9d85..5fac5d3 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c @@ -175,7 +175,7 @@ static struct completion_handler_t completion_handler[2]; control_handler_t control_handler[2]; struct usb_transfer_completion_event_data completion_event; -} ep_data[NUM_ENDPOINTS]; +} ep_data[USB_NUM_ENDPOINTS]; static struct usb_class_driver drivers[USB_NUM_DRIVERS] = { @@ -240,7 +240,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] = static void usb_core_control_request_handler(struct usb_ctrlrequest* req); -static unsigned char response_data[256] USBDEVBSS_ATTR; +static unsigned char response_data[256] USB_DEVBSS_ATTR; static short hex[16] = {'0','1','2','3','4','5','6','7', @@ -476,7 +476,7 @@ static void allocate_interfaces_and_endpoints(void) memset(ep_data,0,sizeof(ep_data)); - for (i = 0; i < NUM_ENDPOINTS; i++) { + for (i = 0; i < USB_NUM_ENDPOINTS; i++) { usb_drv_release_endpoint(i | USB_DIR_OUT); usb_drv_release_endpoint(i | USB_DIR_IN); } diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index a70681d..e2d58cf 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -401,7 +401,7 @@ void usb_storage_init_connection(void) #if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \ defined(CPU_TCC77X) || defined(CPU_TCC780X) static unsigned char _transfer_buffer[BUFFER_SIZE*2] - USBDEVBSS_ATTR __attribute__((aligned(32))); + USB_DEVBSS_ATTR __attribute__((aligned(32))); tb.transfer_buffer = (void *)_transfer_buffer; #else /* TODO : check if bufsize is at least 32K ? */ |