1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

usbus: Use new usbdev ep0 stall function

This commit is contained in:
Koen Zandberg 2021-10-30 12:08:10 +02:00
parent 10578c7895
commit 5f43e07c06
No known key found for this signature in database
GPG Key ID: BA1718B37D79F51C

View File

@ -277,10 +277,8 @@ static void _recv_setup(usbus_t *usbus, usbus_control_handler_t *handler)
}
}
if (res < 0) {
/* Signal stall to indicate unsupported (USB 2.0 spec 9.6.2 */
static const usbopt_enable_t enable = USBOPT_ENABLE;
usbdev_ep_set(handler->in, USBOPT_EP_STALL, &enable,
sizeof(usbopt_enable_t));
/* Signal stall to indicate unsupported (USB 2.0 spec 9.6.2) */
usbdev_ep0_stall(usbus->dev);
handler->control_request_state = USBUS_CONTROL_REQUEST_STATE_READY;
}
else if (res) {