source: rtems/c/src/lib/libbsp/arm/gdbarmsim/console/console-io.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • 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.com/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 */
21void console_initialize_hardware(void)
22{
23  return;
24}
25
26int _write(int fd, char *ptr, int len);
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  _write(2, &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 MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
57
58BSP_output_char_function_type           BSP_output_char = MyBSP_output_char;
59BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.