summaryrefslogtreecommitdiff
path: root/tinyusb/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-18 17:29:12 +0700
committerhathach <[email protected]>2013-11-18 17:29:12 +0700
commit94854f805aa8c80ffe77d8cef3ecfd45a3a9f253 (patch)
tree7b253dc397879317fd53c76e013888e9b6955b08 /tinyusb/device/usbd.c
parentb104d21e7112614e18f1e789fa2dd22ca09f9e4d (diff)
get lpc17xx running through enumeration (with control data < 64)
Diffstat (limited to 'tinyusb/device/usbd.c')
-rw-r--r--tinyusb/device/usbd.c4
1 files changed, 2 insertions, 2 deletions
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 )