From 1bc0ad2e12e9e523a9b9043ac47254a0597826bf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 8 Sep 2017 10:38:46 +0200 Subject: Simplify and unify BSP_output_char The BSP_output_char should output a char and not mingle with high level processing, e.g. '\n' to '\r\n' translation. Move this translation to rtems_putc(). Remove it from all the BSP_output_char implementations. Close #3122. --- c/src/lib/libbsp/arm/imx/console/console-config.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'c/src/lib/libbsp/arm/imx') diff --git a/c/src/lib/libbsp/arm/imx/console/console-config.c b/c/src/lib/libbsp/arm/imx/console/console-config.c index bc9a3d243e..a5b3682dd7 100644 --- a/c/src/lib/libbsp/arm/imx/console/console-config.c +++ b/c/src/lib/libbsp/arm/imx/console/console-config.c @@ -61,15 +61,7 @@ static void imx_uart_write_polled(rtems_termios_device_context *base, char c) static void imx_output_char(char c) { - imx_uart_context *ctx; - - ctx = imx_uart_console; - - if (c == '\n') { - imx_uart_write_polled(&ctx->base, '\r'); - } - - imx_uart_write_polled(&ctx->base, c); + imx_uart_write_polled(&imx_uart_console->base, c); } static void imx_uart_init_context( -- cgit v1.2.3