Changeset c2e32ff in rtems


Ignore:
Timestamp:
Oct 20, 2014, 2:25:41 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 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

Location:
c/src/lib/libbsp/lm32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h

    r770e379 rc2e32ff  
    7777);
    7878
     79/*
     80 * Prototypes for BSP methods that cross file boundaries
     81 */
     82void BSP_uart_polled_write(char ch);
     83int BSP_uart_polled_read( void );
     84char BSP_uart_is_character_ready(char *ch);
     85
    7986#ifdef __cplusplus
    8087}
  • c/src/lib/libbsp/lm32/shared/console/console.c

    r770e379 rc2e32ff  
    1717#define NO_BSP_INIT
    1818
    19 #include <rtems.h>
    2019#include <bsp.h>
    2120#include <rtems/libio.h>
    22 
    23 void BSP_uart_polled_write(char ch);
    24 int BSP_uart_polled_read( void );
    25 char BSP_uart_is_character_ready(char *ch);
    2621
    2722/*  console_initialize
     
    6055   *  If polling, wait until a character is available.
    6156   */
    62 
    6357  return BSP_uart_polled_read();
    6458}
  • 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.