uhci: fix device speed setting when constructing a transfer descriptor.

This commit is contained in:
Martin Whitaker 2022-04-10 11:53:01 +01:00
parent 4c55182cd0
commit ae2c010610
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ bool enable_trace = false;
bool enable_sm = true;
bool enable_bench = true;
bool pause_at_start = false;
bool pause_at_start = true;
power_save_t power_save = POWER_SAVE_HIGH;

View File

@ -272,7 +272,7 @@ static void disable_uhci_port(uint16_t io_base, int port_idx)
static void build_uhci_td(uhci_td_t *td, const usb_ep_t *ep, uint32_t pid, uint32_t dt, uint32_t ioc,
const void *buffer, size_t length)
{
uint8_t device_speed = (ep->device_speed == USB_SPEED_LOW) ? UHCI_TD_LOW_SPEED : UHCI_TD_FULL_SPEED;
uint32_t device_speed = (ep->device_speed == USB_SPEED_LOW) ? UHCI_TD_LOW_SPEED : UHCI_TD_FULL_SPEED;
if (ioc) {
td->link_ptr = UHCI_LP_TERMINATE;