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

Martine Lenders notifications at github.com
Thu Jun 20 10:25:20 CEST 2019


miri64 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,

> From what I see it looks correct.

Except this one ;-).

-- 
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_r295694703
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190620/98b731ce/attachment-0001.html>


More information about the notifications mailing list