diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-08 10:38:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-12 09:57:53 +0200 |
commit | 1bc0ad2e12e9e523a9b9043ac47254a0597826bf (patch) | |
tree | 3ce927bb1e48b6961d64f235162fa823cbac815d /c/src/lib/libbsp/powerpc/t32mppc | |
parent | posix: Use mutex object itself for condvar (diff) | |
download | rtems-1bc0ad2e12e9e523a9b9043ac47254a0597826bf.tar.bz2 |
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.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/t32mppc')
-rw-r--r-- | c/src/lib/libbsp/powerpc/t32mppc/console/console.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/powerpc/t32mppc/console/console.c b/c/src/lib/libbsp/powerpc/t32mppc/console/console.c index bc94f8537a..5fbd648765 100644 --- a/c/src/lib/libbsp/powerpc/t32mppc/console/console.c +++ b/c/src/lib/libbsp/powerpc/t32mppc/console/console.c @@ -123,15 +123,6 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } -static void t32_output_char(char c) -{ - if (c == '\n') { - t32_console_write_char_polled('\r'); - } - - t32_console_write_char_polled(c); -} - -BSP_output_char_function_type BSP_output_char = t32_output_char; +BSP_output_char_function_type BSP_output_char = t32_console_write_char_polled; BSP_polling_getchar_function_type BSP_poll_char = NULL; |