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

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


bergzand commented on this pull request.



> +}
+
+static size_t _num_endpoints(usbus_interface_t *iface)
+{
+    size_t num = 0;
+
+    for (usbus_endpoint_t *ep = iface->ep;
+         ep; ep = ep->next) {
+        num++;
+    }
+    return num;
+}
+
+static uint8_t _type_to_attribute(usbus_endpoint_t *ep)
+{
+    switch (ep->ep->type) {

Added

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


More information about the notifications mailing list