Skip to content

Commit

Permalink
drivers: usb: udc_stm32: set the hs capability if high speed is avail…
Browse files Browse the repository at this point in the history
…able

This fixes usbd_caps_speed(), which is used in sample_usbd_init, and the
documentation. Without it, no high speed configuration would be added.

Signed-off-by: Tobias Pisani <[email protected]>
  • Loading branch information
topisani committed Nov 19, 2024
1 parent 23609c9 commit 84574a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/udc/udc_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ static int udc_stm32_driver_init0(const struct device *dev)
}
}

data->caps.hs = priv->pcd.Init.speed != PCD_SPEED_FULL;
data->caps.rwup = true;
data->caps.out_ack = false;
data->caps.mps0 = UDC_MPS0_64;
Expand Down

0 comments on commit 84574a1

Please sign in to comment.