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

Koen Zandberg notifications at github.com
Fri Sep 20 08:49:49 CEST 2019

bergzand commented on this pull request.

> + *
+ * @}
+ */
+#include <stdio.h>
+#include "isrpipe.h"
+#include "usb/usbus.h"
+#include "usb/usbus/cdc/acm.h"
+#include "vfs.h"
+static usbus_cdcacm_device_t cdcacm;

How about adding something like
usbus_cdcacm_device_t * usb_cdc_acm_stdio_get_ctx(void) 
    return &cdcacm;

This assumes that there is always at most one stdio (which imho is not a bad assumption), and we can change the implementation if required in the future.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190919/927b5b6e/attachment.htm>

More information about the notifications mailing list