Implement endpoint_abort for STM32

Make use of the added function HAL_PCD_EP_Abort to implement
endpoint_abort.
pull/9768/head
Russ Butler 2018-06-25 17:48:53 -05:00
parent 86e1d436e7
commit 5fde071509
1 changed files with 2 additions and 1 deletions

View File

@ -475,7 +475,8 @@ bool USBPhyHw::endpoint_write(usb_ep_t endpoint, uint8_t *data, uint32_t size)
void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
{
// TODO - stop the current transfer on this endpoint and don't call the IN or OUT callback
HAL_StatusTypeDef ret = HAL_PCD_EP_Abort(&hpcd, endpoint);
MBED_ASSERT(ret==HAL_OK);
}
void USBPhyHw::process()