source: rtems/cpukit/include/rtems/bspIo.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file rtems/bspIo.h
3 *
4 * This include file defines the interface to kernel print methods.
5 */
6
7/*
8 *  COPYRIGHT (c) 1998 valette@crf.canon.fr
9 *  COPYRIGHT (c) 2011 On-Line Applications Research Corporation.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15#ifndef _RTEMS_BSPIO_H
16#define _RTEMS_BSPIO_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/*
23 * All the functions declared as extern after this comment
24 * MUST be implemented in each BSP. Using this function,
25 * this directory contains shared code that export higher level
26 * functionnality described after the next command.
27 */
28typedef void    (*BSP_output_char_function_type)        (char c);
29typedef int     (*BSP_polling_getchar_function_type)    (void);
30
31extern  BSP_output_char_function_type           BSP_output_char;
32extern  BSP_polling_getchar_function_type       BSP_poll_char;
33
34/*
35 * All the function declared as extern after this comment
36 * are available for each BSP by compiling and linking
37 * the files contained in this directory PROVIDED definition
38 * and initialisation of the previous variable are done.
39 */
40#include <stdarg.h>
41
42/**
43 *  This method polls for a key in the simplest possible fashion
44 *  from whatever the debug console device is.
45 *
46 *  @return If a character is available, it is returned.  Otherwise
47 *          this method returns -1.
48 *
49 *  @note This method uses the BSP_poll_char pointer to a BSP
50 *        provided method.
51 */
52extern int getchark(void);
53extern void vprintk(const char *fmt, va_list ap);
54extern void printk(const char *fmt, ...);
55extern void putk(const char *s);
56
57/*
58 *  This routine is passed into RTEMS reporting functions
59 *  that may have their output redirected.  In particular,
60 *  the cpu usage, period usage, and stack usage reporting
61 *  functions use this.  If the user provides their
62 *  own "printf plugin", then they may redirect those reports
63 *  as they see fit.
64 */
65extern int printk_plugin(void *context, const char *fmt, ...);
66
67/*
68 *  Type definition for function which can be plugged in to
69 *  certain reporting routines to redirect the output
70 */
71typedef int (*rtems_printk_plugin_t)(void *, const char *format, ...);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif
Note: See TracBrowser for help on using the repository browser.