Changeset 1bc0ad2 in rtems for c/src/lib/libbsp/i386


Ignore:
Timestamp:
Sep 8, 2017, 8:38:46 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
458179f1
Parents:
62c912e
git-author:
Sebastian Huber <sebastian.huber@…> (09/08/17 08:38:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/12/17 07:57:53)
Message:

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.

Location:
c/src/lib/libbsp/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/console/printk_support.c

    r62c912e r1bc0ad2  
    4545    if (port->pDeviceFns && port->pDeviceFns->deviceWritePolled) {
    4646      port->pDeviceFns->deviceWritePolled( BSPPrintkPort, ch );
    47       /*
    48        * No termios so expand the LF to LF/CR.
    49        */
    50       if ( ch == '\n')
    51         port->pDeviceFns->deviceWritePolled( BSPPrintkPort, '\r' );
    5247    }
    5348    return;
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    r62c912e r1bc0ad2  
    398398{
    399399  BSP_uart_polled_write(BSPConsolePort, val);
    400   if (val == '\n') BSP_uart_polled_write(BSPConsolePort,'\r');
    401400}
    402401
Note: See TracChangeset for help on using the changeset viewer.