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/rtl22xx/console/uart.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'c/src/lib/libbsp/arm/rtl22xx') diff --git a/c/src/lib/libbsp/arm/rtl22xx/console/uart.c b/c/src/lib/libbsp/arm/rtl22xx/console/uart.c index 91f7f325c6..2952e74508 100644 --- a/c/src/lib/libbsp/arm/rtl22xx/console/uart.c +++ b/c/src/lib/libbsp/arm/rtl22xx/console/uart.c @@ -250,9 +250,6 @@ static int uart_set_attributes(int minor, const struct termios *t) static void _BSP_put_char( char c ) { uart_write_polled(0, c); - if (c == '\n') { - uart_write_polled(0, '\r'); - } } BSP_output_char_function_type BSP_output_char = _BSP_put_char; -- cgit v1.2.3