forked from Imagelibrary/rtems
PR 1917/bsps * console.c: Modifications to add dynamic tables for libchip serial drivers. * console_control.c, console_private.h, console_read.c, console_select.c, console_write.c: New files.
46 lines
934 B
C
46 lines
934 B
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup Console
|
|
*
|
|
* @brief Generic libchip console read extension
|
|
*/
|
|
|
|
/*
|
|
* This file is an extension of the generic console driver
|
|
* shell used by all console drivers using libchip.
|
|
*
|
|
* COPYRIGHT (c) 1989-2011.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <bsp.h>
|
|
#include <rtems/libio.h>
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <termios.h>
|
|
|
|
#include <rtems/termiostypes.h>
|
|
#include <libchip/serial.h>
|
|
#include "console_private.h"
|
|
|
|
/*
|
|
* console_read
|
|
*
|
|
* This routine uses the termios driver to read a character.
|
|
*/
|
|
rtems_device_driver console_read(
|
|
rtems_device_major_number major,
|
|
rtems_device_minor_number minor,
|
|
void * arg
|
|
)
|
|
{
|
|
return rtems_termios_read (arg);
|
|
}
|