[riot-notifications] [RIOT-OS/RIOT] usbus: Add CDC-ECM (Ethernet Control Model) function (#11077)

Koen Zandberg notifications at github.com
Mon Jun 10 10:33:43 CEST 2019


bergzand commented on this pull request.



> +                                        USB_EP_DIR_OUT,
+                                        USBUS_CDCECM_EP_DATA_SIZE);
+    cdcecm->ep_out->interval = 0;
+    cdcecm->ep_in = usbus_add_endpoint(usbus,
+                                       (usbus_interface_t *)&cdcecm->iface_data_alt,
+                                       USB_EP_TYPE_BULK,
+                                       USB_EP_DIR_IN,
+                                       USBUS_CDCECM_EP_DATA_SIZE);
+    cdcecm->ep_in->interval = 0;
+    /* Add interfaces to the stack */
+    usbus_add_interface(usbus, &cdcecm->iface_ctrl);
+    usbus_add_interface(usbus, &cdcecm->iface_data);
+
+    cdcecm->iface_data.alts = &cdcecm->iface_data_alt;
+
+    //cdc->ep_data_in.ep->driver->ready(cdc->ep_data_in.ep, 0);

Removed

-- 
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/11077#discussion_r291923479
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190610/d62ac11c/attachment.html>


More information about the notifications mailing list