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/altera-cyclone-v/console/console-config.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c') diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c b/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c index 3249bbdcba..5ee02d0bb5 100644 --- a/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c +++ b/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c @@ -150,10 +150,6 @@ static void output_char(char c) { rtems_termios_device_context *ctx = console_device_table[0].context; - if (c == '\n') { - ns16550_polled_putchar( ctx, '\r' ); - } - ns16550_polled_putchar( ctx, c ); } -- cgit v1.2.3