source: rtems/bsps/arm/gdbarmsim/console/console-io.c @ d7d66d7

5
Last change on this file since d7d66d7 was d7d66d7, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/18 at 04:28:01

bsps: Move console drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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.org/license/LICENSE.
8 */
9
10#include <bsp.h>
11#include <bsp/console-polled.h>
12#include <rtems/libio.h>
13#include <stdlib.h>
14#include <assert.h>
15
16/*
17 *  console_initialize_hardware
18 *
19 *  This routine initializes the console hardware.
20 *
21 */
22void console_initialize_hardware(void)
23{
24  return;
25}
26
27/*
28 *  console_outbyte_polled
29 *
30 *  This routine transmits a character using polling.
31 */
32void console_outbyte_polled(
33  int  port,
34  char ch
35)
36{
37  gdbarmsim_writec(ch);
38}
39
40/*
41 *  console_inbyte_nonblocking
42 *
43 *  This routine polls for a character.
44 */
45
46int console_inbyte_nonblocking(
47  int port
48)
49{
50  return -1;
51}
52
53#include <rtems/bspIo.h>
54
55static void MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
56
57BSP_output_char_function_type           BSP_output_char = MyBSP_output_char;
58BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.