source: rtems/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c @ 8536b67

4.115
Last change on this file since 8536b67 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

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-2011.
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#include <reent.h>
15
16/*
17 *  console_initialize_hardware
18 *
19 *  This routine initializes the console hardware.
20 *
21 */
22
23void console_initialize_hardware(void)
24{
25  return;
26}
27
28/*
29 *  console_outbyte_polled
30 *
31 *  This routine transmits a character using polling.
32 */
33void 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
47int console_inbyte_nonblocking(
48  int port
49)
50{
51  return -1;
52}
53
54#include <rtems/bspIo.h>
55
56void console_output_char(char c) { console_outbyte_polled( 0, c ); }
57
58BSP_output_char_function_type           BSP_output_char = console_output_char;
59BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.