Skip to content

Commit 33b1153

Browse files
committed
drivers: usb: udc_stm32: fix maximum speed for usb_fs
update the definition of FULL_SPEED based on the presence of USB and USB_DRD_FS. Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
1 parent fc7f564 commit 33b1153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/usb/udc/udc_stm32.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ LOG_MODULE_REGISTER(udc_stm32, CONFIG_UDC_DRIVER_LOG_LEVEL);
5050
#define HIGH_SPEED USB_OTG_SPEED_HIGH
5151
#endif
5252

53+
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_usb)
54+
#define FULL_SPEED PCD_SPEED_FULL
55+
#else
5356
#define FULL_SPEED USB_OTG_SPEED_FULL
57+
#endif
5458

5559
struct udc_stm32_data {
5660
PCD_HandleTypeDef pcd;

0 commit comments

Comments
 (0)