yangsong8-a1 commented on code in PR #21113:
URL: https://github.com/apache/nuttx/pull/21113#discussion_r4477741403


##########
drivers/serial/serial.c:
##########
@@ -1669,8 +1700,23 @@ static ssize_t uart_writev(FAR struct file *filep, FAR 
struct uio *uio)
    */
 
   uart_disabletxint(dev);
+
+  /* Copy the payload into the TX buffer.  Output post-processing only needs
+   * to translate CR (when OCRNL is set) and NL (when ONLCR/ONLRET is set);
+   * every other byte is copied verbatim.  So within each iovec segment,
+   * locate the next byte that needs translation, bulk-copy everything before
+   * it with uart_putxmitbuffer(), then handle that one byte.  When no

Review Comment:
   done, thank you.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to