source: rtems/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c @ 0ef1009

4.115
Last change on this file since 0ef1009 was 0ef1009, checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/11 at 17:41:09

2011-01-31 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, console/console-io.c, include/bsp.h, start/start.S: Create dedicated bsp_reset() and clean up.
  • Property mode set to 100644
File size: 1.1 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.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#include <bsp.h>
13#include <rtems/libio.h>
14#include <stdlib.h>
15#include <assert.h>
16#include <reent.h>
17
18/*
19 *  console_initialize_hardware
20 *
21 *  This routine initializes the console hardware.
22 *
23 */
24
25void console_initialize_hardware(void)
26{
27  return;
28}
29
30/*
31 *  console_outbyte_polled
32 *
33 *  This routine transmits a character using polling.
34 */
35void console_outbyte_polled(
36  int  port,
37  char ch
38)
39{
40  TRAP0(SYS_write, 1, &ch, 1);
41}
42
43/*
44 *  console_inbyte_nonblocking
45 *
46 *  This routine polls for a character.
47 */
48
49int console_inbyte_nonblocking(
50  int port
51)
52{
53  return -1;
54}
55
56#include <rtems/bspIo.h>
57
58void console_output_char(char c) { console_outbyte_polled( 0, c ); }
59
60BSP_output_char_function_type           BSP_output_char = console_output_char;
61BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.