diff --git a/arch/arm/src/tms570/Kconfig b/arch/arm/src/tms570/Kconfig index 9c9edbdb1d..f69ee4181e 100644 --- a/arch/arm/src/tms570/Kconfig +++ b/arch/arm/src/tms570/Kconfig @@ -89,12 +89,14 @@ config TMS570_SCI1 bool "Serial Communication Interface 1 (SCI1)" default n select ARCH_HAVE_SCI1 + select ARCH_HAVE_SERIAL_TERMIOS config TMS570_SCI2 bool "Serial Communication Interface 2 (SCI2)" default n depends on TMS570_HAVE_SCI2 select ARCH_HAVE_SCI1 + select ARCH_HAVE_SERIAL_TERMIOS endmenu # TMS570 Peripheral Support diff --git a/arch/arm/src/tms570/tms570_serial.c b/arch/arm/src/tms570/tms570_serial.c index ab176f91bc..b4850ae1e4 100644 --- a/arch/arm/src/tms570/tms570_serial.c +++ b/arch/arm/src/tms570/tms570_serial.c @@ -735,12 +735,9 @@ static int tms570_receive(struct uart_dev_s *dev, uint32_t *status) { struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv; - /* Return the error information in the saved status. - * - * REVISIT: RX error information is not currently retained. - */ + /* Return the error information in the saved status. */ - *status = 0; + *status = tms570_serialin(priv, TMS570_SCI_FLR_OFFSET); /* Then return the actual received byte */ @@ -892,9 +889,11 @@ void up_serialinit(void) tms570_disableallints(TTYS1_DEV.priv, NULL); #endif - /* Configuration whichever one is the console */ - #ifdef HAVE_SERIAL_CONSOLE + /* Configure whichever one is the console. NOTE: This was already done + * in tms570_lowsetup(). + */ + CONSOLE_DEV.isconsole = true; tms570_setup(&CONSOLE_DEV);