source: rtems/c/src/lib/libbsp/h8300/h8sim/console/console-io.c @ 3a422f7d

4.115
Last change on this file since 3a422f7d was 3a422f7d, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 3, 2014 at 8:11:50 PM

h8sim/console/console-io.c: Comment clean up

  • 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
6/*
7 *  COPYRIGHT (c) 1989-2008.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp.h>
16#include <rtems/libio.h>
17#include <stdlib.h>
18#include <assert.h>
19
20/*
21 *  console_initialize_hardware
22 *
23 *  This routine initializes the console hardware.
24 *
25 */
26
27void console_initialize_hardware(void)
28{
29  return;
30}
31
32/*
33 *  console_outbyte_polled
34 *
35 *  This routine transmits a character using polling.
36 */
37ssize_t _sys_write(int fd, const void *buf, size_t count);
38void console_outbyte_polled(
39  int  port,
40  char ch
41)
42{
43  _sys_write( 1, &ch, 1 );
44}
45
46/*
47 *  console_inbyte_nonblocking
48 *
49 *  This routine polls for a character.
50 */
51
52int console_inbyte_nonblocking(
53  int port
54)
55{
56  return -1;
57}
58
59#include <rtems/bspIo.h>
60
61void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
62
63BSP_output_char_function_type           BSP_output_char = H8simBSP_output_char;
64BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.