[riot-notifications] [RIOT-OS/RIOT] [WIP] sam0_common: Add USB peripheral driver (#10915)

Koen Zandberg notifications at github.com
Sun Feb 10 12:59:08 CET 2019


bergzand commented on this pull request.



> +            }
+            else {
+                USB->DEVICE.DADD.bit.ADDEN = 0;
+            }
+            break;
+        case USBOPT_ATTACH:
+            assert(value_len == sizeof(usbopt_enable_t));
+            if (*((usbopt_enable_t *)value)) {
+                usb_attach();
+            }
+            else {
+                usb_detach();
+            }
+            res = sizeof(usbopt_enable_t);
+            break;
+        default:

Also done

-- 
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/10915#discussion_r255334494
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190210/db30f4ec/attachment-0001.html>


More information about the notifications mailing list