Skip to content

Commit 425d638

Browse files
committed
STM32L4 USB: remove EndpointAbort support
1 parent 525d3cc commit 425d638

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_STM/USBPhy_STM32.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd)
6363
{
6464
USBPhyHw *priv = ((USBPhyHw *)(hpcd->pData));
6565
USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
66+
uint32_t USBx_BASE = (uint32_t)USBx;
6667
if (priv->sof_enabled) {
6768
priv->events->sof((USBx_DEVICE->DSTS & USB_OTG_DSTS_FNSOF) >> 8);
6869
}
@@ -530,8 +531,10 @@ bool USBPhyHw::endpoint_write(usb_ep_t endpoint, uint8_t *data, uint32_t size)
530531

531532
void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
532533
{
534+
#ifndef TARGET_STM32L4
533535
HAL_StatusTypeDef ret = HAL_PCD_EP_Abort(&hpcd, endpoint);
534536
MBED_ASSERT(ret == HAL_OK);
537+
#endif
535538
}
536539

537540
void USBPhyHw::process()

0 commit comments

Comments
 (0)