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

Koen Zandberg notifications at github.com
Mon Mar 18 21:52:48 CET 2019


bergzand commented on this pull request.



> +            assert(false);
+    }
+    if (ep->dir == USB_EP_DIR_OUT) {
+        ep_reg->EPCFG.bit.EPTYPE0 = type;
+    }
+    else {
+        ep_reg->EPCFG.bit.EPTYPE1 = type;
+    }
+}
+
+static void _usbdev_esr(usbdev_t *dev)
+{
+    sam0_common_usb_t *usbdev = (sam0_common_usb_t*)dev;
+    if (usbdev->connect_change) {
+        usbdev->connect_change = false;
+        if (gpio_read(GPIO_PIN(PA, 7))) {

Also fixed

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


More information about the notifications mailing list