arch/arm/src/imxrt: Remove extra newline check in up_lowputc()
This patch removes the extra check for newline character which is
sending incorrect data size to the UART buffer when data is dumped
by pre-appending a carriage return for every newline character.
@@ -529,21 +529,6 @@ void imxrt_lowputc(char ch)
while ((getreg32(IMXRT_CONSOLE_BASE + IMXRT_LPUART_STAT_OFFSET) & LPUART_STAT_TDRE(1U)) == 0) {
}
- /* If the character to output is a newline, then pre-pend a carriage return */
-
- if (ch == '\n') {
- /* Send the carriage return by writing it into the UART_TXD register. */
-
- putreg32((uint32_t)'\r', IMXRT_CONSOLE_BASE + IMXRT_LPUART_DATA_OFFSET);
-
- /* Wait for the transmit register to be emptied. When the TXFE bit is non-zero,
- * the TX Buffer FIFO is empty.
- */
-
- while ((getreg32(IMXRT_CONSOLE_BASE + IMXRT_LPUART_STAT_OFFSET) & LPUART_STAT_TDRE(1U)) == 0) {
- }
- }
-
/* Send the character by writing it into the UART_TXD register. */
putreg32((uint32_t)ch, IMXRT_CONSOLE_BASE + IMXRT_LPUART_DATA_OFFSET);
