Giovanni wrote:Hi,
Is it possible your descriptor is wrong somehow? it happens after the host retrieves it.
Giovanni
Do you mean especially (USB) device descriptor or configuration one or what?
BR
Viljami
Giovanni wrote:Hi,
Is it possible your descriptor is wrong somehow? it happens after the host retrieves it.
Giovanni
Code: Select all
.
.
case (uint32_t)USB_RTYPE_RECIPIENT_DEVICE | ((uint32_t)USB_REQ_GET_DESCRIPTOR << 8):
case (uint32_t)USB_RTYPE_RECIPIENT_INTERFACE | ((uint32_t)USB_REQ_GET_DESCRIPTOR << 8):
/* Handling descriptor requests from the host.*/
dp = usbp->config->get_descriptor_cb(usbp, usbp->setup[3],
usbp->setup[2],
get_hword(&usbp->setup[4]));
if (dp == NULL) {
return false;
}
/*lint -save -e9005 [11.8] Removing const is fine.*/
usbSetupTransfer(usbp, (uint8_t *)dp->ud_string, dp->ud_size, NULL);
/*lint -restore*/
return true;
.
.
Users browsing this forum: No registered users and 28 guests