Changeset 23c3f72e in rtems for cpukit/include/rtems/bspIo.h


Ignore:
Timestamp:
Sep 22, 2008, 9:47:04 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
d50ba03
Parents:
0fbd231
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/bspIo.h

    r0fbd231 r23c3f72e  
    2626 */
    2727typedef void    (*BSP_output_char_function_type)        (char c);
    28 typedef char    (*BSP_polling_getchar_function_type)    (void);
     28typedef int     (*BSP_polling_getchar_function_type)    (void);
    2929
    3030extern  BSP_output_char_function_type           BSP_output_char;
     
    3939#include <stdarg.h>
    4040
     41/**
     42 *  This method polls for a key in the simplest possible fashion
     43 *  from whatever the debug console device is.
     44 *
     45 *  @return If a character is available, it is returned.  Otherwise
     46 *          this method returns -1.
     47 *
     48 *  @note This method uses the BSP_poll_char pointer to a BSP
     49 *        provided method.
     50 */
     51extern int getchark(void);
    4152extern void vprintk(const char *fmt, va_list ap);
    4253extern void printk(const char *fmt, ...);
Note: See TracChangeset for help on using the changeset viewer.