4.115
Last change
on this file since 8536b67 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
|
Rev | Line | |
---|
[ea1116d] | 1 | /* |
---|
[0ef1009] | 2 | * COPYRIGHT (c) 1989-2011. |
---|
[ea1116d] | 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 |
---|
[c499856] | 7 | * http://www.rtems.org/license/LICENSE. |
---|
[ea1116d] | 8 | */ |
---|
| 9 | |
---|
| 10 | #include <bsp.h> |
---|
| 11 | #include <rtems/libio.h> |
---|
| 12 | #include <stdlib.h> |
---|
| 13 | #include <assert.h> |
---|
| 14 | #include <reent.h> |
---|
| 15 | |
---|
| 16 | /* |
---|
| 17 | * console_initialize_hardware |
---|
| 18 | * |
---|
| 19 | * This routine initializes the console hardware. |
---|
| 20 | * |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | void console_initialize_hardware(void) |
---|
| 24 | { |
---|
| 25 | return; |
---|
| 26 | } |
---|
| 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 | TRAP0(SYS_write, 1, &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 console_output_char(char c) { console_outbyte_polled( 0, c ); } |
---|
| 57 | |
---|
| 58 | BSP_output_char_function_type BSP_output_char = console_output_char; |
---|
| 59 | BSP_polling_getchar_function_type BSP_poll_char = NULL; |
---|
Note: See
TracBrowser
for help on using the repository browser.