Changeset fa70134 in mainline


Ignore:
Timestamp:
2019-08-17T12:27:20Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32355bc, 32b4302
Parents:
cd76bbd5
Message:

Translate LF to CRLF in ns16550 driver

This is necessary for some terminals to function correctly,
and other drivers are already doing this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/ns16550/ns16550.c

    rcd76bbd5 rfa70134  
    117117
    118118        if ((!instance->parea.mapped) || (console_override)) {
     119                if (ch == '\n')
     120                        ns16550_sendb(instance, '\r');
     121
    119122                if (ascii_check(ch))
    120123                        ns16550_sendb(instance, (uint8_t) ch);
Note: See TracChangeset for help on using the changeset viewer.