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

Koen Zandberg notifications at github.com
Wed Mar 20 22:19:29 CET 2019


bergzand commented on this pull request.



> +    else {
+        _disable_ep_stall_out(ep_reg);
+        ep_reg->EPSTATUSCLR.reg = USB_DEVICE_EPSTATUSCLR_BK0RDY;
+    }
+    return 0;
+}
+
+/**
+ * Endpoint event handler
+ *
+ * Calls the endpoint callback to report the event to the USB stack
+ */
+static void _usbdev_ep_esr(usbdev_ep_t *ep)
+{
+    UsbDeviceEndpoint *ep_reg = _ep_reg_from_ep(ep);
+    signed event = -1;

But this driver is closely tied to an ARM based coreā€¦

I can change it to `int32_t` if you like

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


More information about the notifications mailing list