change(usb/host): Remove data buffer headers from URBs

This commit removes the ability to reserve a header in the data buffer of an
allocated URB. The header was required for a now defunct implementation of a
synchronous USB Host library API. Thus, headers are no longer required in
URB data buffers.
This commit is contained in:
Darian Leung
2023-11-22 00:47:38 +08:00
parent 900cf69513
commit bfc8c3a154
4 changed files with 11 additions and 15 deletions

View File

@@ -1245,7 +1245,7 @@ exit:
esp_err_t usb_host_transfer_alloc(size_t data_buffer_size, int num_isoc_packets, usb_transfer_t **transfer)
{
urb_t *urb = urb_alloc(data_buffer_size, 0, num_isoc_packets);
urb_t *urb = urb_alloc(data_buffer_size, num_isoc_packets);
if (urb == NULL) {
return ESP_ERR_NO_MEM;
}