POSIX defines the TERMIOS options and, I suspect that those TERMIOS
options are required, not optional (need to check that). If that is
true, then there should be no CONFIG_SERIAL_TERMIOS option; it should
always be enabled.
On 3/8/2023 2:15 PM, Nathan Hartman wrote:
On Wed, Mar 8, 2023 at 2:26 PM Xiang Xiao <xiaoxiang781...@gmail.com> wrote:
Since the code to handle the special process is very small, is it better to
always allow application change ECHO and OPOST through TCSETS? So, the
special function or program can disable ECHO/OPOST programmatically.
Only if termios support is enabled in Kconfig (CONFIG_SERIAL_TERMIOS), I
think. Else all serial setup is static and cannot be altered
programmatically -- this makes sense when connected to a dedicated device,
such as MCU UART connected directly to another MCU UART or some sensor chip
or interface chip with serial setup that never changes.
Nathan