Changeset 1301468 in rtems


Ignore:
Timestamp:
Apr 3, 2017, 10:51:51 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2ba996fa
Parents:
36f0ac2
git-author:
Sebastian Huber <sebastian.huber@…> (04/03/17 10:51:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/03/17 12:07:58)
Message:

bsps: Fix baud settings

Update #2897.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/console/console.c

    r36f0ac2 r1301468  
    8989  uint32_t mr;
    9090
    91   baud = rtems_termios_baud_to_number(term->c_cflag);
     91  baud = rtems_termios_baud_to_number(term->c_ospeed);
    9292  regs->US_BRGR = (BOARD_MCK / baud) / 16;
    9393
     
    328328  uint32_t mr;
    329329
    330   baud = rtems_termios_baud_to_number(term->c_cflag);
     330  baud = rtems_termios_baud_to_number(term->c_ospeed);
    331331  regs->UART_BRGR = (BOARD_MCK / baud) / 16;
    332332
  • c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c

    r36f0ac2 r1301468  
    191191  union ESCI_CR1_tag cr1 = { .R = regs->CR1.R };
    192192  union ESCI_CR2_tag cr2 = MPC55XX_ZERO_FLAGS;
    193   rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_cflag);
     193  rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_ospeed);
    194194
    195195  /* Enable module */
  • c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-linflex.c

    r36f0ac2 r1301468  
    175175  LINFLEX_GCR_32B_tag gcr = { .R = 0 };
    176176  LINFLEX_LINIER_32B_tag ier = { .R = 0 };
    177   rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_cflag);
     177  rtems_termios_baud_t br = rtems_termios_baud_to_number(t->c_ospeed);
    178178  LINFLEX_LINFBRR_32B_tag fbrr = { .R = 0 };
    179179  LINFLEX_LINIBRR_32B_tag ibrr = { .R = 0 };
  • c/src/lib/libbsp/sparc/shared/uart/apbuart_termios.c

    r36f0ac2 r1301468  
    149149
    150150  /* Baud rate */
    151   baud = rtems_termios_baud_to_number(t->c_cflag);
     151  baud = rtems_termios_baud_to_number(t->c_ospeed);
    152152  if (baud > 0) {
    153153    /* Calculate Baud rate generator "scaler" number */
  • c/src/libchip/serial/ns16550-context.c

    r36f0ac2 r1301468  
    597597   */
    598598
    599   baud_requested = rtems_termios_baud_to_number(t->c_cflag);
     599  baud_requested = rtems_termios_baud_to_number(t->c_ospeed);
    600600  _Assert( baud_requested != 0 );
    601601
  • c/src/libchip/serial/ns16550.c

    r36f0ac2 r1301468  
    536536   */
    537537
    538   baud_requested = rtems_termios_baud_to_number(t->c_cflag);
     538  baud_requested = rtems_termios_baud_to_number(t->c_ospeed);
    539539  _Assert( baud_requested != 0 );
    540540  ulBaudDivisor = NS16550_GetBaudDivisor(c, baud_requested);
  • cpukit/dev/serial/sc16is752.c

    r36f0ac2 r1301468  
    149149  ctx->lcr = 0;
    150150
    151   baud = rtems_termios_baud_to_number(term->c_cflag);
     151  baud = rtems_termios_baud_to_number(term->c_ospeed);
    152152  baud_successful = set_baud(ctx, baud);
    153153  if (!baud_successful){
  • cpukit/libcsupport/include/rtems/termiostypes.h

    r36f0ac2 r1301468  
    531531
    532532/**
    533  *  @brief Convert Baud Part of Termios control flags to an integral Baud Value
    534  *
    535  *  There is no need to mask the @a c_cflag with @c CBAUD.
     533 *  @brief Converts the baud flags to an integral baud value.
    536534 *
    537535 *  @retval 0 Invalid baud value or a baud value of @c B0.
    538536 *  @retval other Integral baud value.
    539537 */
    540 rtems_termios_baud_t rtems_termios_baud_to_number(speed_t c_cflag);
     538rtems_termios_baud_t rtems_termios_baud_to_number(speed_t baud);
    541539
    542540/**
Note: See TracChangeset for help on using the changeset viewer.