source: rtems/cpukit/libcsupport/src/getchark.c @ 23c3f72e

4.104.11
Last change on this file since 23c3f72e was 23c3f72e, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 22, 2008 at 9:47:04 PM

2008-09-22 Joel Sherrill <joel.sherrill@…>

  • include/rtems/bspIo.h, libcsupport/Makefile.am: Add genchark() for polled debug input from the same device as printk().
  • libcsupport/src/getchark.c: New file.
  • Property mode set to 100644
File size: 446 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
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.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems.h>
17#include <rtems/bspIo.h>
18
19int getchark(void)
20{
21  if ( BSP_poll_char )
22    return (*BSP_poll_char)();
23
24  return -1;
25}
Note: See TracBrowser for help on using the repository browser.