source: rtems/c/src/lib/libbsp/shared/console_read.c @ f3b29236

5
Last change on this file since f3b29236 was 1e587f7d, checked in by Ben Gras <beng@…>, on 12/15/14 at 12:35:26

bsp/beagle: Fix some warnings

The extra includes in console_*.c are to solve a 'no previous prototype'
warning.

Solves #2212 in trac.

  • Property mode set to 100644
File size: 948 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup Console
5 *
6 * @brief Generic libchip console read extension
7 */
8
9/*
10 *  This file is an extension of the generic console driver
11 *  shell used by all console drivers using libchip.
12 *
13 *  COPYRIGHT (c) 1989-2011.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.org/license/LICENSE.
19 */
20
21#include <bsp.h>
22#include <rtems/libio.h>
23#include <stdlib.h>
24#include <assert.h>
25#include <termios.h>
26
27#include <rtems/termiostypes.h>
28#include <rtems/console.h>
29#include <libchip/serial.h>
30#include "console_private.h"
31
32/*
33 *  console_read
34 *
35 *  This routine uses the termios driver to read a character.
36 */
37rtems_device_driver console_read(
38  rtems_device_major_number major,
39  rtems_device_minor_number minor,
40  void                    * arg
41)
42{
43  return rtems_termios_read (arg);
44}
Note: See TracBrowser for help on using the repository browser.