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

Koen Zandberg notifications at github.com
Thu Mar 28 22:22:10 CET 2019


bergzand commented on this pull request.



> +        for (usbus_interface_alt_t *alt = iface->alts; alt; alt = alt->next) {
+            for (usbus_endpoint_t *ep = alt->ep; ep; ep = ep->next) {
+                if (ep->active) {
+                    static const usbopt_enable_t enable = USBOPT_ENABLE;
+                    usbdev_ep_set(ep->ep, USBOPT_EP_ENABLE, &enable,
+                                  sizeof(usbopt_enable_t));
+                    DEBUG("usbus_control: activated endpoint %d, dir %s\n",
+                          ep->ep->num,
+                          ep->ep->dir == USB_EP_DIR_OUT ? "out" : "in");
+                }
+            }
+        }
+    }
+}
+
+static size_t usbus_cpy_str_to_utf16(usbus_t *usbus, const char *str)

Fixed

-- 
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_r270204210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190328/0b64e51f/attachment.html>


More information about the notifications mailing list