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

Koen Zandberg notifications at github.com
Thu Sep 19 10:52:06 CEST 2019


bergzand commented on this pull request.



> +
+static usbus_cdcacm_device_t cdcacm;
+static uint8_t _cdc_tx_buf_mem[STDIO_UART_RX_BUFSIZE * 4];
+static uint8_t _cdc_rx_buf_mem[STDIO_UART_RX_BUFSIZE];
+isrpipe_t cdc_stdio_isrpipe = ISRPIPE_INIT(_cdc_rx_buf_mem);
+
+#if MODULE_VFS
+static ssize_t uart_stdio_vfs_read(vfs_file_t *filp, void *dest, size_t nbytes);
+static ssize_t uart_stdio_vfs_write(vfs_file_t *filp, const void *src, size_t nbytes);
+
+/**
+ * @brief VFS file operation table for stdin/stdout/stderr
+ */
+static vfs_file_ops_t uart_stdio_vfs_ops = {
+    .read = stdio_vfs_read,
+    .write = stdio_vfs_write,

And removed, should compile now.

-- 
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_r326060085
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190919/68cfcf51/attachment.htm>


More information about the notifications mailing list