Пример #1
0
__noinline
void
usb_handle_control_status(int fail)
{
	if (fail) {
		usb_pipe_stall(&usbd_pipe_state[USBD_PIPE_EP0_RX]);
		usb_pipe_stall(&usbd_pipe_state[USBD_PIPE_EP0_TX]);
	} else {
		usb_handle_control_status_cb(usb_handle_control_done, NULL);
	}
}
Пример #2
0
__noinline
void
usb_handle_control_status(int fail)
{
	if (fail) {
		usb_pipe_stall(&usbd_ep_state[0].rx);
		usb_pipe_stall(&usbd_ep_state[0].tx);
	} else {
		usb_handle_control_status_cb(usb_handle_control_done);
	}
}