[riot-notifications] [RIOT-OS/RIOT] usbus: Add automated test (#12267)

Koen Zandberg notifications at github.com
Wed Sep 18 12:17:46 CEST 2019


bergzand commented on this pull request.



> +{
+    (void)ep;
+}
+
+int _ep_get(usbdev_ep_t *ep, usbopt_ep_t opt,
+            void *value, size_t max_len)
+{
+    usbdev_mock_ep_t *testep = (usbdev_mock_ep_t *)ep;
+
+    (void)max_len;
+    switch (opt) {
+        case USBOPT_EP_AVAILABLE:
+            *((size_t *)value) = testep->available;
+            return sizeof(size_t);
+        default:
+            break;

Added

-- 
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/12267#discussion_r325595051
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190918/518a0f17/attachment.htm>


More information about the notifications mailing list