Ignore:
Timestamp:
Oct 20, 2014, 2:25:41 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
21ee1c8
Parents:
770e379
git-author:
Joel Sherrill <joel.sherrill@…> (10/20/14 14:25:41)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/20/14 15:02:05)
Message:

lm32 BSP shared and lm32_evr: Fix BSPs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/lm32/shared/console/uart.c

    r770e379 rc2e32ff  
    11/*
    22 *  Uart driver for Lattice Mico32 (lm32) UART
    3  *
     3 */
     4
     5/*
    46 *  COPYRIGHT (c) 1989-1999.
    57 *  On-Line Applications Research Corporation (OAR).
     
    1517#include "../include/system_conf.h"
    1618#include "uart.h"
     19#include <bsp.h>
    1720#include <rtems/libio.h>
    1821
     
    5255}
    5356
    54 char BSP_uart_polled_read( void )
     57int BSP_uart_polled_read( void )
    5558{
    5659  /* Wait until there is a byte in RBR */
    5760  while (!(uartread(LM32_UART_LSR) & LM32_UART_LSR_DR));
    58   return (char) uartread(LM32_UART_RBR);
     61  return (int) uartread(LM32_UART_RBR);
    5962}
    6063
Note: See TracChangeset for help on using the changeset viewer.