Revert "driver/uart_rpmsg: Passthrough data by default"

This reverts commit 64e611d71e.
This commit is contained in:
Huang Qi 2023-03-21 11:31:03 +08:00 committed by Alan Carvalho de Assis
parent 3428d15d04
commit 7ce78dd66a

View File

@ -412,14 +412,8 @@ int uart_rpmsg_init(FAR const char *cpuname, FAR const char *devname,
return ret;
}
/* Ignore the `isconsole` to passthrough all UART data,
* since the most common usage of rpmsg uart is to communicate with cu
* in other processor core, should not do CRLF convertion and ECHO.
* Note: you can also change this behavior by termios.
*/
dev->ops = &g_uart_rpmsg_ops;
dev->isconsole = false;
dev->isconsole = isconsole;
dev->recv.size = buf_size;
dev->xmit.size = buf_size;
@ -460,7 +454,7 @@ int uart_rpmsg_init(FAR const char *cpuname, FAR const char *devname,
sprintf(dev_name, "%s%s", UART_RPMSG_DEV_PREFIX, devname);
uart_register(dev_name, dev);
if (isconsole)
if (dev->isconsole)
{
uart_register(UART_RPMSG_DEV_CONSOLE, dev);
}