[riot-notifications] [RIOT-OS/RIOT] usbus: Add CDC-ACM (Serial console) function (#11085)

Koen Zandberg notifications at github.com
Sat Jun 15 21:44:44 CEST 2019


bergzand commented on this pull request.



> +
+static size_t _gen_full_acm_descriptor(usbus_t *usbus, void *arg)
+{
+    usbus_cdcacm_device_t *cdcacm = (usbus_cdcacm_device_t*)arg;
+    size_t total_len = 0;
+    total_len += _gen_cdc_descriptor(usbus);
+    total_len += _gen_acm_descriptor(usbus);
+    total_len += _gen_union_descriptor(usbus, cdcacm);
+    total_len += _gen_mngt_descriptor(usbus);
+    return total_len;
+}
+
+int cdc_init(usbus_t *usbus, usbus_cdcacm_device_t *handler,
+             usbus_cdcacm_cb_t cb, uint8_t *buf, size_t len)
+{
+    memset(handler, 0 , sizeof(usbus_cdcacm_device_t));

Fixed

-- 
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/11085#discussion_r294057612
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190615/e13316eb/attachment-0001.html>


More information about the notifications mailing list