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

4.104.114.84.9
Last change on this file since 9af457f was 8eea24b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 26, 2007 at 6:12:29 AM

2007-07-26 Ralf Corsépius <ralf.corsepius@…>

  • include/rtems/bspIo.h, include/rtems/pci.h: Add extern "C" guards. Reported by Robert S. Grimes <rsg@…>.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/* bspIo.h
2 *
3 *  This include file contains declaration of interface that
4 *  will be provided by the file contained in this directory.
5 *
6 *  COPYRIGHT (c) 1998 valette@crf.canon.fr
7 *
8 *  The license and distribution terms for this file may be
9 *  found in found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14#ifndef _RTEMS_BSPIO_H
15#define _RTEMS_BSPIO_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/*
22 * All the functions declared as extern after this comment
23 * MUST be implemented in each BSP. Using this function,
24 * this directory contains shared code that export higher level
25 * functionnality described after the next command.
26 */
27typedef void    (*BSP_output_char_function_type)        (char c);
28typedef char    (*BSP_polling_getchar_function_type)    (void);
29
30extern  BSP_output_char_function_type           BSP_output_char;
31extern  BSP_polling_getchar_function_type       BSP_poll_char;
32
33/*
34 * All the function declared as extern after this comment
35 * are available for each BSP by compiling and linking
36 * the files contained in this directory PROVIDED definition
37 * and initialisation of the previous variable are done.
38 */
39#include <stdarg.h>
40extern void vprintk(char *fmt, va_list ap);
41extern void printk(char *fmt, ...);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif
Note: See TracBrowser for help on using the repository browser.