get lpc17xx running through enumeration (with control data < 64)
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user