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

Koen Zandberg notifications at github.com
Mon Feb 11 11:22:34 CET 2019


bergzand commented on this pull request.



> +    int res = -ENOTSUP;
+    assert(ep != NULL);
+    switch (opt) {
+        case USBOPT_EP_ENABLE:
+            assert(value_len == sizeof(usbopt_enable_t));
+            if (*((usbopt_enable_t *)value)) {
+                usbdev_ep_init(ep);
+                _ep_enable(ep);
+            }
+            else {
+                _ep_disable(ep);
+            }
+            break;
+        case USBOPT_EP_BUF_ADDR:
+            assert(value_len == sizeof(uint8_t *));
+            res = sizeof(char *);

Whole setter is removed

-- 
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_r255445635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190211/efe02bd5/attachment-0001.html>


More information about the notifications mailing list