Changeset 75e8e04 in rtems


Ignore:
Timestamp:
Oct 19, 2000, 3:18:20 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e090b7e
Parents:
f2442183
Message:

2000-10-18 Charles-Antoine Gauthier <charles.gauthier@…>

  • comm/uart.c (BSP_uart_init): Save more line state parameters.
Location:
c/src/lib/libbsp/i386/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/ChangeLog

    rf2442183 r75e8e04  
     1
     2        * comm/uart.c (BSP_uart_init): Save more line state parameters.
     3
     42000-10-18       Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
    15
    26        * comm/i386-stub-glue.c, comm/tty_drv.c, comm/uart.c, comm/uart.h:
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    rf2442183 r75e8e04  
    158158
    159159  /* Remember state */
     160  uart_data[uart].baud       = baud;
     161  uart_data[uart].databits   = databits;
     162  uart_data[uart].parity     = parity;
     163  uart_data[uart].stopbits   = stopbits;
    160164  uart_data[uart].hwFlow     = hwFlow;
    161   uart_data[uart].baud       = baud;
    162165  return;
    163166}
     
    166169 * Set baud
    167170 */
     171
     172void
     173BSP_uart_set_baud(
     174  int uart,
     175  unsigned long baud
     176)
     177{
     178  /* Sanity check */
     179  assert(uart == BSP_UART_COM1 || uart == BSP_UART_COM2);
     180
     181  BSP_uart_set_attributes( uart, baud, uart_data[uart].databits,
     182    uart_data[uart].parity, uart_data[uart].stopbits );
     183}
     184
     185/*
     186 *  Set all attributes
     187 */
     188
    168189void
    169190BSP_uart_set_attributes
Note: See TracChangeset for help on using the changeset viewer.