Add a new function usbd_abort_default_pipe() that aborts any transfers
on the default pipe. This is helpful in device detach routines to stop any active control transfers.
This commit is contained in:
parent
ad55d8b5d0
commit
0f68b77a1a
@ -556,6 +556,12 @@ usbd_abort_pipe(usbd_pipe_handle pipe)
|
||||
return (err);
|
||||
}
|
||||
|
||||
usbd_status
|
||||
usbd_abort_default_pipe(usbd_device_handle dev)
|
||||
{
|
||||
return (usbd_abort_pipe(dev->default_pipe));
|
||||
}
|
||||
|
||||
usbd_status
|
||||
usbd_clear_endpoint_stall(usbd_pipe_handle pipe)
|
||||
{
|
||||
|
@ -110,6 +110,7 @@ void usbd_get_xfer_status(usbd_xfer_handle, usbd_private_handle *,
|
||||
usb_endpoint_descriptor_t *usbd_interface2endpoint_descriptor
|
||||
(usbd_interface_handle, u_int8_t);
|
||||
usbd_status usbd_abort_pipe(usbd_pipe_handle);
|
||||
usbd_status usbd_abort_default_pipe(usbd_device_handle);
|
||||
usbd_status usbd_clear_endpoint_stall(usbd_pipe_handle);
|
||||
usbd_status usbd_clear_endpoint_stall_async(usbd_pipe_handle);
|
||||
void usbd_clear_endpoint_toggle(usbd_pipe_handle);
|
||||
|
Loading…
Reference in New Issue
Block a user