Changeset 23c3f72e in rtems


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.
Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0fbd231 r23c3f72e  
     12008-09-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * include/rtems/bspIo.h, libcsupport/Makefile.am: Add genchark() for
     4        polled debug input from the same device as printk().
     5        * libcsupport/src/getchark.c: New file.
     6
    172008-09-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • 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, ...);
  • cpukit/libcsupport/Makefile.am

    r0fbd231 r23c3f72e  
    100100BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
    101101
    102 libcsupport_a_SOURCES = src/gxx_wrappers.c src/printk.c src/printk_plugin.c \
     102libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
     103    src/printk_plugin.c \
    103104    $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
    104105    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
Note: See TracChangeset for help on using the changeset viewer.