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

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


bergzand commented on this pull request.



> +
+    usbus->state = USBUS_STATE_DISCONNECT;
+
+    /* Initialize handlers */
+    _usbus_init_handlers(usbus);
+
+#if (USBUS_AUTO_ATTACH)
+    static const usbopt_enable_t _enable = USBOPT_ENABLE;
+    usbdev_set(dev, USBOPT_ATTACH, &_enable,
+               sizeof(usbopt_enable_t));
+#endif
+
+    while (1) {
+        msg_receive(&msg);
+        /* dispatch USBUS messages */
+        switch (msg.type & 0xFF00) {

refactored out while implementing [the comment](https://github.com/RIOT-OS/RIOT/pull/10916#discussion_r253214624) from @kaspar030 

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


More information about the notifications mailing list