[USB] fix stall bug on control transfers

This commit is contained in:
blta 2022-04-19 10:40:08 +08:00 committed by guo
parent f5b0bfd3f4
commit 2d08dca65a
1 changed files with 2 additions and 2 deletions

View File

@ -1834,14 +1834,14 @@ rt_err_t rt_usbd_ep0_set_stall(udevice_t device)
{
RT_ASSERT(device != RT_NULL);
return dcd_ep_set_stall(device->dcd, 0);
return dcd_ep_set_stall(device->dcd, 0x80);
}
rt_err_t rt_usbd_ep0_clear_stall(udevice_t device)
{
RT_ASSERT(device != RT_NULL);
return dcd_ep_clear_stall(device->dcd, 0);
return dcd_ep_clear_stall(device->dcd, 0x80);
}
rt_err_t rt_usbd_ep_set_stall(udevice_t device, uep_t ep)