diff options
| author | hathach <[email protected]> | 2013-11-14 14:12:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-14 14:12:07 +0700 |
| commit | 6e8440afe555cc8c47b8ef1fdce56bb5d37231a8 (patch) | |
| tree | 6fb3e3bf2e3d0e71fe8ed22e17134c7b74591b1a /tinyusb/device/usbd.c | |
| parent | 7d84139bd4e69e0b4cb42fb638a7a6d52afe93de (diff) | |
complete double buffering for queueing xfer for lpc11u/13u requried by msc device
Diffstat (limited to 'tinyusb/device/usbd.c')
| -rw-r--r-- | tinyusb/device/usbd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 9d7d23c07..e16dafc97 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -146,9 +146,11 @@ tusb_error_t usbd_init (void) //--------------------------------------------------------------------+ // CONTROL REQUEST //--------------------------------------------------------------------+ +// TODO Host (windows) can get HID report descriptor before set configured +// need to open interface before set configured tusb_error_t usbh_set_configure_received(uint8_t coreid, uint8_t config_number) { - dcd_controller_set_configuration(coreid, config_number); + dcd_controller_set_configuration(coreid); usbd_devices[coreid].state = TUSB_DEVICE_STATE_CONFIGURED; //------------- parse configuration & open drivers -------------// @@ -287,7 +289,7 @@ void usbd_setup_received_isr(uint8_t coreid, tusb_control_request_t * p_request) if(TUSB_ERROR_NONE != error) { // Response with Protocol Stall if request is not supported dcd_pipe_control_stall(coreid); - ASSERT(error == TUSB_ERROR_NONE, VOID_RETURN); +// ASSERT(error == TUSB_ERROR_NONE, VOID_RETURN); } } |
