source: rtems/c/src/lib/libbsp/arm/gdbarmsim/console/console-io.c @ 44bb5cd0

4.104.115
Last change on this file since 44bb5cd0 was 44bb5cd0, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 1, 2009 at 9:48:42 PM

2009-10-01 Joel Sherrill <joel.sherrill@…>

  • .cvsignore, ChangeLog?, Makefile.am, bsp_specs, configure.ac, preinstall.am, console/.cvsignore, console/console-io.c, include/.cvsignore, include/bsp.h, include/irq.h, include/swi.h, start/.cvsignore, start/start.S, startup/.cvsignore, startup/bspreset.c, startup/bspstart.c, startup/linkcmds, startup/syscalls.c: New files.
  • Property mode set to 100644
File size: 1.1 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.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
17/*
18 *  console_initialize_hardware
19 *
20 *  This routine initializes the console hardware.
21 *
22 */
23void console_initialize_hardware(void)
24{
25  return;
26}
27
28int _write(int fd, char *ptr, int len);
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  _write(2, &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 MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
59
60BSP_output_char_function_type           BSP_output_char = MyBSP_output_char;
61BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.