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

Koen Zandberg notifications at github.com
Wed Feb 13 19:41:04 CET 2019


bergzand commented on this pull request.



> +{
+    if (USB->DEVICE.EPINTSMRY.reg) {
+        unsigned ep_num = bitarithm_lsb(USB->DEVICE.EPINTSMRY.reg);
+        UsbDeviceEndpoint *ep_reg = &USB->DEVICE.DeviceEndpoint[ep_num];
+        if (_ep_in_flags_set(ep_reg)) {
+            usbdev_ep_t *ep = _get_ep(ep_num, USB_EP_DIR_IN);
+            _disable_ep_irq(ep);
+            ep->cb(ep, USBDEV_EVENT_ESR);
+        }
+        else if (_ep_out_flags_set(ep_reg)) {
+            usbdev_ep_t *ep = _get_ep(ep_num, USB_EP_DIR_OUT);
+            _disable_ep_irq(ep);
+            ep->cb(ep, USBDEV_EVENT_ESR);
+        }
+        else {
+            DEBUG("Unhandled ISR\n");

Reworded

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


More information about the notifications mailing list