source: rtems/c/src/lib/libbsp/sh/shsim/console/console-debugio.c @ a531683

4.115
Last change on this file since a531683 was a531683, checked in by Joel Sherrill <joel.sherrill@…>, on 04/18/14 at 15:52:21

shsim: Add printk() support and move all code to console subdirectory

  • Property mode set to 100644
File size: 740 bytes
Line 
1/**
2 *  @file
3 *  @brief Stub printk() support
4 *
5 *  This file contains a stub for the required printk() support.
6 *  It is NOT functional!!!
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2014.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18/*
19 *  To support printk
20 */
21
22#include <rtems.h>
23#include <rtems/bspIo.h>
24
25void console_outbyte_polled(
26  int  port,
27  char ch
28);
29
30void BSP_output_char_f(char c)
31{
32  console_outbyte_polled( 0, c );
33}
34
35BSP_output_char_function_type           BSP_output_char = BSP_output_char_f;
36BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracBrowser for help on using the repository browser.