From 94854f805aa8c80ffe77d8cef3ecfd45a3a9f253 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 18 Nov 2013 17:29:12 +0700 Subject: get lpc17xx running through enumeration (with control data < 64) --- tinyusb/device/usbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb/device/usbd.c') diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 69e89b687..5850d0e26 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -50,7 +50,7 @@ #include "usbd_dcd.h" // Some MCUs cannot transfer more than 64 bytes each queue, thus require special task-alike treatment -#if MCU == MCU_LPC11UXX +#if MCU == MCU_LPC11UXX || MCU == MCU_LPC175X_6X #define USBD_CONTROL_ONE_PACKET_EACH_XFER // for each Transfer, cannot queue more than packet size enum { USBD_COTNROL_MAX_LENGTH_EACH_XFER = 64 @@ -184,7 +184,7 @@ tusb_error_t usbd_body_subtask(void) if ( TUSB_ERROR_NONE == error ) { - dcd_pipe_control_xfer(coreid, control_request.bmRequestType_bit.direction, p_buffer, length); // zero length + dcd_pipe_control_xfer(coreid, control_request.bmRequestType_bit.direction, p_buffer, length); } } else if ( TUSB_REQUEST_SET_ADDRESS == control_request.bRequest ) -- cgit v1.3.1