4.115
Last change
on this file since c499856 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:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2009. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #include <bsp.h> |
---|
11 | #include <rtems/libio.h> |
---|
12 | #include <stdlib.h> |
---|
13 | #include <assert.h> |
---|
14 | |
---|
15 | /* |
---|
16 | * console_initialize_hardware |
---|
17 | * |
---|
18 | * This routine initializes the console hardware. |
---|
19 | * |
---|
20 | */ |
---|
21 | void console_initialize_hardware(void) |
---|
22 | { |
---|
23 | return; |
---|
24 | } |
---|
25 | |
---|
26 | int _write(int fd, char *ptr, int len); |
---|
27 | |
---|
28 | /* |
---|
29 | * console_outbyte_polled |
---|
30 | * |
---|
31 | * This routine transmits a character using polling. |
---|
32 | */ |
---|
33 | void console_outbyte_polled( |
---|
34 | int port, |
---|
35 | char ch |
---|
36 | ) |
---|
37 | { |
---|
38 | _write(2, &ch, 1); |
---|
39 | } |
---|
40 | |
---|
41 | /* |
---|
42 | * console_inbyte_nonblocking |
---|
43 | * |
---|
44 | * This routine polls for a character. |
---|
45 | */ |
---|
46 | |
---|
47 | int console_inbyte_nonblocking( |
---|
48 | int port |
---|
49 | ) |
---|
50 | { |
---|
51 | return -1; |
---|
52 | } |
---|
53 | |
---|
54 | #include <rtems/bspIo.h> |
---|
55 | |
---|
56 | void MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); } |
---|
57 | |
---|
58 | BSP_output_char_function_type BSP_output_char = MyBSP_output_char; |
---|
59 | BSP_polling_getchar_function_type BSP_poll_char = NULL; |
---|
Note: See
TracBrowser
for help on using the repository browser.