RTEMS  5.1
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 
49 typedef void (*BSP_output_char_function_type) (char c);
50 
55 typedef int (*BSP_polling_getchar_function_type) (void);
56 
65 
71 
84 extern int getchark(void);
85 
97 extern int vprintk(const char *fmt, va_list ap);
98 
99 int rtems_printk_printer(
100  void *ignored,
101  const char *format,
102  va_list ap
103 );
104 
115 extern int printk(const char *fmt, ...) RTEMS_PRINTFLIKE(1, 2);
116 
126 extern int putk(const char *s);
127 
136 extern void rtems_putc(char c);
137 
146 void rtems_put_char( int c, void *arg );
147 
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 #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
#define RTEMS_PRINTFLIKE(_format_pos, _ap_pos)
Tells the compiler that this function expects printf()-like arguments.
Definition: basedefs.h:249
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:29
void rtems_putc(char c)
Kernel Put Character.
Definition: rtems_putc.c:28
void rtems_put_char(int c, void *arg)
Puts the character via rtems_putc().
Definition: rtems_put_char.c:34
BSP_output_char_function_type BSP_output_char
Definition: console-config.c:162
int(* BSP_polling_getchar_function_type)(void)
Definition: bspIo.h:55
Basic Definitions.
void(* BSP_output_char_function_type)(char c)
Definition: bspIo.h:49
int printk(const char *fmt,...) RTEMS_PRINTFLIKE(1
Kernel Print.