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/m68k/mcf5225x/console/debugio.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mcf5225x') diff --git a/c/src/lib/libbsp/m68k/mcf5225x/console/debugio.c b/c/src/lib/libbsp/m68k/mcf5225x/console/debugio.c index cf8069254e..b91048a310 100644 --- a/c/src/lib/libbsp/m68k/mcf5225x/console/debugio.c +++ b/c/src/lib/libbsp/m68k/mcf5225x/console/debugio.c @@ -22,9 +22,6 @@ static void _BSP_null_char(char c) { rtems_interrupt_level level=UART0_IRQ_LEVEL; - if (c == '\n') - _BSP_null_char('\r'); - rtems_interrupt_disable(level); while ((MCF_UART_USR(CONSOLE_PORT) & MCF_UART_USR_TXRDY) == 0) continue; -- cgit v1.2.3