Changeset 393e8ea in rtems


Ignore:
Timestamp:
Oct 10, 2014, 4:43:08 PM (6 years ago)
Author:
Hesham ALMatary <heshamelmatary@…>
Branches:
4.11, 5, master
Children:
116ef2e9
Parents:
fcc1d157
git-author:
Hesham ALMatary <heshamelmatary@…> (10/10/14 16:43:08)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 20:59:08)
Message:

libbsp/or1ksim: Fix warnings.

Location:
c/src/lib/libbsp/or1k/or1ksim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/or1k/or1ksim/clock/clockdrv.c

    rfcc1d157 r393e8ea  
    138138#define Clock_driver_support_install_isr(isr, old_isr) \
    139139  do {                                                 \
    140     or1ksim_clock_handler_install(isr, old_isr);               \
    141140    old_isr = NULL;                                    \
     141    or1ksim_clock_handler_install(isr, old_isr);       \
    142142  } while (0)
    143143
  • c/src/lib/libbsp/or1k/or1ksim/console/uart.c

    rfcc1d157 r393e8ea  
    2121#include <bsp/uart.h>
    2222#include <rtems/score/isr.h>
     23
     24static void uart_initialize(int minor);
     25static int  uart_first_open(int major, int minor, void *arg);
     26static int  uart_last_close(int major, int minor, void *arg);
     27static int  uart_read_polled(int minor);
     28static ssize_t uart_write(int minor, const char *buf, size_t len);
     29static void uart_write_polled(int minor, char c);
     30static int  uart_set_attributes(int minor, const struct termios *t);
    2331
    2432static rtems_vector_number uart_get_irq_number(const console_tbl *ct)
     
    8795}
    8896
    89 static char uart_read_polled(int minor)
     97static int uart_read_polled(int minor)
    9098{
    9199  unsigned char lsr;
    92   char c;
    93100
    94101 /* Get a character when avaiable */
     
    121128}
    122129
    123 static ssize_t uart_write_support_polled(
     130static ssize_t uart_write(
    124131  int minor,
    125132  const char *s,
     
    146153  .deviceLastClose = uart_last_close,
    147154  .deviceRead = uart_read_polled,
    148   .deviceWrite = uart_write_support_polled,
     155  .deviceWrite = uart_write,
    149156  .deviceInitialize = uart_initialize,
    150157  .deviceWritePolled = uart_write_polled,
Note: See TracChangeset for help on using the changeset viewer.