RTEMS  5.0.0
bspIo.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1998 valette@crf.canon.fr
11  * COPYRIGHT (c) 2011 On-Line Applications Research Corporation.
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 #ifndef _RTEMS_BSPIO_H
19 #define _RTEMS_BSPIO_H
20 
21 #include <rtems/score/basedefs.h>
22 
23 #include <stdarg.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
47 typedef void (*BSP_output_char_function_type) (char c);
48 
53 typedef int (*BSP_polling_getchar_function_type) (void);
54 
63 
69 
82 extern int getchark(void);
83 
95 extern int vprintk(const char *fmt, va_list ap);
96 
97 int rtems_printk_printer(
98  void *ignored,
99  const char *format,
100  va_list ap
101 );
102 
113 extern int printk(const char *fmt, ...) RTEMS_PRINTFLIKE(1, 2);
114 
124 extern int putk(const char *s);
125 
134 extern void rtems_putc(char c);
135 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif
Definition: mknod-pack_dev.c:254
BSP_polling_getchar_function_type BSP_poll_char
Definition: console-config.c:164
int int putk(const char *s)
Kernel Put String.
Definition: putk.c:26
int getchark(void)
Get Character (kernel I/O)
Definition: getchark.c:24
int vprintk(const char *fmt, va_list ap)
Variable Argument printk()
Definition: vprintk.c:34
void rtems_putc(char c)
Kernel Put Character.
Definition: rtems_putc.c:28
BSP_output_char_function_type BSP_output_char
Definition: console-config.c:162
#define RTEMS_PRINTFLIKE(_format_pos, _ap_pos)
Tells the compiler that this function expects printf()-like arguments.
Definition: basedefs.h:237
int(* BSP_polling_getchar_function_type)(void)
Definition: bspIo.h:53
Basic Definitions.
void(* BSP_output_char_function_type)(char c)
Definition: bspIo.h:47
int printk(const char *fmt,...) RTEMS_PRINTFLIKE(1
Kernel Print.