[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:32 CET 2019


bergzand commented on this pull request.



> +        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 *);
+            break;
+        case USBOPT_EP_BUF_SIZE:
+            assert(value_len == sizeof(size_t));

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


More information about the notifications mailing list