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

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


bergzand commented on this pull request.



> +{
+    usbus_fmt_hdr_conf(usbus);
+    return 1;
+}
+
+static int _req_dev_qualifier(usbus_t *usbus)
+{
+    usb_speed_t speed = USB_SPEED_LOW;
+
+    usbus->dev->driver->get(usbus->dev, USBOPT_MAX_SPEED, &speed,
+                            sizeof(usb_speed_t));
+    if (speed == USB_SPEED_HIGH) {
+        /* TODO: implement device qualifier support (only required
+         * for High speed) */
+    }
+    return -1;

Added a comment (negative signals a stall condition, [see also here](https://github.com/RIOT-OS/RIOT/pull/10916/files#diff-38e020bc78b287d1782f6e35d81afcefR329))

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


More information about the notifications mailing list