[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:31 CET 2019


bergzand commented on this pull request.



> +        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");
+        }
+    }
+    else {
+        _disable_irq();

Added, also added a comment a bit above to clarify that those are endpoint interrupt cases

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


More information about the notifications mailing list