We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01ab79 commit 155ef4bCopy full SHA for 155ef4b
drivers/usb/udc/udc_stm32.c
@@ -542,6 +542,16 @@ static int udc_stm32_disable(const struct device *dev)
542
543
irq_disable(DT_INST_IRQN(0));
544
545
+ if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) {
546
+ LOG_ERR("Failed to disable control endpoint");
547
+ return -EIO;
548
+ }
549
+
550
+ if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) {
551
552
553
554
555
status = HAL_PCD_Stop(&priv->pcd);
556
if (status != HAL_OK) {
557
LOG_ERR("PCD_Stop failed, %d", (int)status);
0 commit comments