Changeset 1bc0ad2 in rtems for c/src/lib/libbsp/powerpc/tqm8xx


Ignore:
Timestamp:
Sep 8, 2017, 8:38:46 AM (3 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/tqm8xx/console/console.c

    r62c912e r1bc0ad2  
    847847{
    848848  rtems_interrupt_level irq_level;
    849   static char cr_chr = '\r';
    850849
    851850  if (BSP_output_chan != CONS_CHN_NONE) {
    852851    rtems_interrupt_disable(irq_level);
    853852
    854     if (c == '\n') {
    855       sccPollWrite (BSP_output_chan,&cr_chr,1);
    856     }
    857853    sccPollWrite (BSP_output_chan,&c,1);
    858854    rtems_interrupt_enable(irq_level);
Note: See TracChangeset for help on using the changeset viewer.