xiaoxiang781216 commented on code in PR #8454:
URL: https://github.com/apache/nuttx/pull/8454#discussion_r1099585163


##########
include/nuttx/serial/serial.h:
##########
@@ -283,10 +283,10 @@ struct uart_dev_s
   pid_t                pid;          /* Thread PID to receive signals (-1 if 
none) */
 #endif
 
-#ifdef CONFIG_SERIAL_TERMIOS
   /* Terminal control flags */
 
   tcflag_t             tc_iflag;     /* Input modes */
+#ifdef CONFIG_SERIAL_TERMIOS

Review Comment:
   isconsole controls the default behaviour:
   
   1. If isconsole equals true, the new line conversion for both direction and 
the check of Ctrl+C check will happen.
   2. If isconsole equals false, no interception happens in serial driver level.
   
   CONFIG_SERIAL_TERMIOS enable the user change the behavior at the runtime.



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