4.115
Last change
on this file since 0626dba was
0626dba,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/15/14 at 19:20:14
|
SH libcpu and libbsp: Fix warnings
|
-
Property mode set to
100644
|
File size:
1019 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This file contains the hardware specific portions of the TTY driver |
---|
3 | * for the simulators stdin/out. |
---|
4 | */ |
---|
5 | |
---|
6 | /* |
---|
7 | * COPYRIGHT (c) 1989-2011. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <bsp.h> |
---|
16 | #include <bsp/console-polled.h> |
---|
17 | #include <rtems/libio.h> |
---|
18 | #include <stdlib.h> |
---|
19 | #include <assert.h> |
---|
20 | |
---|
21 | #include <bsp/syscall.h> |
---|
22 | |
---|
23 | /* |
---|
24 | * console_initialize_hardware |
---|
25 | * |
---|
26 | * This routine initializes the console hardware. |
---|
27 | */ |
---|
28 | void console_initialize_hardware(void) |
---|
29 | { |
---|
30 | } |
---|
31 | |
---|
32 | /* |
---|
33 | * console_outbyte_polled |
---|
34 | * |
---|
35 | * This routine transmits a character using polling. |
---|
36 | */ |
---|
37 | void console_outbyte_polled( |
---|
38 | int port, |
---|
39 | char ch |
---|
40 | ) |
---|
41 | { |
---|
42 | __trap34 (SYS_write, 1, &ch, 1); |
---|
43 | } |
---|
44 | |
---|
45 | /* |
---|
46 | * console_inbyte_nonblocking |
---|
47 | * |
---|
48 | * This routine polls for a character. |
---|
49 | */ |
---|
50 | int console_inbyte_nonblocking( |
---|
51 | int port |
---|
52 | ) |
---|
53 | { |
---|
54 | unsigned char c; |
---|
55 | |
---|
56 | return __trap34 (SYS_read, 0, &c, 1); |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.