source: rtems/c/src/lib/libbsp/m32c/m32cbsp/console/console-io.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • 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.org/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( 2, &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 M32CsimBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
60
61BSP_output_char_function_type       BSP_output_char = M32CsimBSP_output_char;
62BSP_polling_getchar_function_type   BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.