Ignore:
Timestamp:
Oct 8, 2014, 9:04:56 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
6adacd89
Parents:
8536b67
git-author:
Joel Sherrill <joel.sherrill@…> (10/08/14 21:04:56)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/10/14 15:17:09)
Message:

Add console-polled.h and update all BSPs that should use it.

The file console-polled.h provides the prototypes for the three
required methods when implementing a single port polled console
driver. This paradigm is common on simulators and simple hardware.

+ Updated the BSPs Makefile.am to make console-polled.h available.
+ Regenerated the BSPs preinstall.sm.
+ Updated console support files to include <bsp/console-polled.h>.
+ Updated console support files to make printk() support method static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/csb350/console/console-io.c

    r8536b67 r6279149  
    22 *  This file contains the hardware specific portions of the TTY driver
    33 *  for the serial ports on the csb350.
    4  *
    5  *  Logic based on the jmr3904-io.c file in newlib 1.8.2
    6  *
     4 */
     5
     6/*
    77 *  COPYRIGHT (c) 1989-2000.
    88 *  On-Line Applications Research Corporation (OAR).
     
    1414
    1515#include <bsp.h>
     16#include <bsp/console-polled.h>
    1617#include <rtems/libio.h>
    1718#include <libcpu/au1x00.h>
     
    8182}
    8283
    83 int csb250_get_char(void)
     84static int csb250_get_char(void)
    8485{
    8586  return console_inbyte_nonblocking(0);
Note: See TracChangeset for help on using the changeset viewer.