4.115
Last change
on this file since 19260fb was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
921 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 <libchip/serial.h> |
---|
29 | #include "console_private.h" |
---|
30 | |
---|
31 | /* |
---|
32 | * console_read |
---|
33 | * |
---|
34 | * This routine uses the termios driver to read a character. |
---|
35 | */ |
---|
36 | rtems_device_driver console_read( |
---|
37 | rtems_device_major_number major, |
---|
38 | rtems_device_minor_number minor, |
---|
39 | void * arg |
---|
40 | ) |
---|
41 | { |
---|
42 | return rtems_termios_read (arg); |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.