Changeset ea05c438 in rtems


Ignore:
Timestamp:
Oct 20, 2014, 8:25:37 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
040ed0b4
Parents:
ddc8165
Message:

or1k/or1ksim: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/or1k/or1ksim/console/uart.c

    rddc8165 rea05c438  
    3030static int  uart_set_attributes(int minor, const struct termios *t);
    3131
     32#if 0
     33/*
     34 *  These will be useful when the driver supports interrupt driven IO.
     35 */
    3236static rtems_vector_number uart_get_irq_number(const console_tbl *ct)
    3337{
    34    return ct->ulIntVector;
     38  return ct->ulIntVector;
    3539}
    3640
    3741static uint32_t uart_get_baud(const console_tbl *ct)
    3842{
    39    return ct->ulClock;
     43  return ct->ulClock;
    4044}
     45#endif
    4146
    4247static void uart_set_baud(int baud)
     
    6166
    6267  /* Reset receiver and transmitter */
    63    OR1KSIM_REG(OR1KSIM_BSP_UART_REG_FIFO_CTRL) =
    64      OR1KSIM_BSP_UART_REG_FIFO_CTRL_ENABLE_FIFO |
    65      OR1KSIM_BSP_UART_REG_FIFO_CTRL_CLEAR_RCVR  |
    66      OR1KSIM_BSP_UART_REG_FIFO_CTRL_CLEAR_XMIT  |
    67      OR1KSIM_BSP_UART_REG_FIFO_CTRL_TRIGGER_14;
     68  OR1KSIM_REG(OR1KSIM_BSP_UART_REG_FIFO_CTRL) =
     69    OR1KSIM_BSP_UART_REG_FIFO_CTRL_ENABLE_FIFO |
     70    OR1KSIM_BSP_UART_REG_FIFO_CTRL_CLEAR_RCVR  |
     71    OR1KSIM_BSP_UART_REG_FIFO_CTRL_CLEAR_XMIT  |
     72    OR1KSIM_BSP_UART_REG_FIFO_CTRL_TRIGGER_14;
    6873
    6974  /* Set data pattern configuration */
Note: See TracChangeset for help on using the changeset viewer.