Changeset 5247a214 in rtems for bsps/arm


Ignore:
Timestamp:
Nov 14, 2018, 10:48:56 PM (12 months ago)
Author:
Pavel Pisa <pisa@…>
Branches:
master
Children:
68c8a19
Parents:
aefd4a2
Message:

bsp/tms570: correct baudrate calculation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/tms570/console/tms570-sci.c

    raefd4a2 r5247a214  
    312312  baudrate *= 2 * 16;
    313313  bauddiv = (BSP_PLL_OUT_CLOCK + baudrate / 2) / baudrate;
    314   ctx->regs->BRS = bauddiv;
     314  ctx->regs->BRS = bauddiv? bauddiv - 1: 0;
    315315
    316316  ctx->regs->GCR1 |= TMS570_SCI_GCR1_SWnRST | TMS570_SCI_GCR1_TXENA |
Note: See TracChangeset for help on using the changeset viewer.