[riot-notifications] [RIOT-OS/RIOT] [WIP] USBUS: Initial work towards an USB stack (#10916)

Koen Zandberg notifications at github.com
Wed Feb 13 19:36:11 CET 2019


bergzand commented on this pull request.



> +                }
+                else if (usbus->setup_state == USBUS_SETUPRQ_OUTDATA && ep->dir == USB_EP_DIR_OUT) {
+                    /* Ready in ZLP */
+                    usbus->setup_state = USBUS_SETUPRQ_INACK;
+                    usbus->in->driver->ready(usbus->in, 0);
+                }
+                else if (ep->dir == USB_EP_DIR_OUT) {
+                    memset(&usbus->builder, 0, sizeof(usbus_controlbuilder_t));
+                    memcpy(&usbus->setup, usbus->out->buf, sizeof(usb_setup_t));
+                    usbus->builder.reqlen = usbus->setup.length;
+                    usbus->out->driver->ready(usbus->out, 0);
+                    recv_setup(usbus, ep);
+                }
+                break;
+            case USBDEV_EVENT_TR_FAIL:
+                if (ep->dir == USB_EP_DIR_OUT) {

Done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10916#discussion_r256531383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190213/1039deec/attachment.html>


More information about the notifications mailing list