source: rtems/c/src/lib/libbsp/h8300/h8sim/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.2 KB
Line 
1/*
2 *  This file contains the hardware specific portions of the TTY driver
3 *  for the serial ports on the erc32.
4 *
5 *  COPYRIGHT (c) 1989-2008.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 */
12
13#include <bsp.h>
14#include <rtems/libio.h>
15#include <stdlib.h>
16#include <assert.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 */
35ssize_t _sys_write(int fd, const void *buf, size_t count);
36void console_outbyte_polled(
37  int  port,
38  char ch
39)
40{
41  _sys_write( 1, &ch, 1 );
42}
43
44/*
45 *  console_inbyte_nonblocking
46 *
47 *  This routine polls for a character.
48 */
49
50int console_inbyte_nonblocking(
51  int port
52)
53{
54  return -1;
55}
56
57#include <rtems/bspIo.h>
58
59void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
60
61BSP_output_char_function_type           BSP_output_char = H8simBSP_output_char;
62BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.