Changeset 8a78b784 in rtems


Ignore:
Timestamp:
Jul 31, 2018, 8:45:41 AM (16 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a7cd4b73
Parents:
529154b
git-author:
Sebastian Huber <sebastian.huber@…> (07/31/18 08:45:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/01/18 08:08:59)
Message:

serial/ns16550: Use standard register names

Use the standard register names for the divisor latches. This makes it
easier to compare the code with other driver implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/dev/serial/ns16550-context.c

    r529154b r8a78b784  
    154154
    155155  /* XXX */
    156   (*setReg)(pNS16550,NS16550_TRANSMIT_BUFFER,(uint8_t)(ulBaudDivisor & 0xffU));
     156  (*setReg)(pNS16550,NS16550_DIVISOR_LATCH_L,(uint8_t)(ulBaudDivisor & 0xffU));
    157157  (*setReg)(
    158     pNS16550,NS16550_INTERRUPT_ENABLE,
     158    pNS16550,NS16550_DIVISOR_LATCH_M,
    159159    (uint8_t)(( ulBaudDivisor >> 8 ) & 0xffU )
    160160  );
     
    661661
    662662    (*setReg)(pNS16550, NS16550_LINE_CONTROL, SP_LINE_DLAB);
    663     (*setReg)(pNS16550, NS16550_TRANSMIT_BUFFER, ulBaudDivisor&0xff);
    664     (*setReg)(pNS16550, NS16550_INTERRUPT_ENABLE, (ulBaudDivisor>>8)&0xff);
     663    (*setReg)(pNS16550, NS16550_DIVISOR_LATCH_L, ulBaudDivisor&0xff);
     664    (*setReg)(pNS16550, NS16550_DIVISOR_LATCH_M, (ulBaudDivisor>>8)&0xff);
    665665
    666666    /*
Note: See TracChangeset for help on using the changeset viewer.