source: rtems/c/src/lib/libbsp/sh/gensh2/include/bsp.h @ 46dde0fc

4.115
Last change on this file since 46dde0fc was 46dde0fc, checked in by Sebastian Huber <sebastian.huber@…>, on 10/23/14 at 08:05:17

bsps: Move extern "C" to not cover includes

Some includes may use C++ and this conflicts if surrounded extern "C".

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 *  generic sh2
3 *
4 *  This include file contains all board IO definitions.
5 */
6
7/*
8 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
9 *
10 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
11 *
12 *  This program is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 *
16 *
17 *  COPYRIGHT (c) 1998.
18 *  On-Line Applications Research Corporation (OAR).
19 *
20 *  The license and distribution terms for this file may be
21 *  found in the file LICENSE in this distribution or at
22 *  http://www.rtems.org/license/LICENSE.
23 *
24 *  Minor adaptations for sh2 by:
25 *  John M. Mills (jmills@tga.com)
26 *  TGA Technologies, Inc.
27 *  100 Pinnacle Way, Suite 140
28 *  Norcross, GA 30071 U.S.A.
29 *
30 *  This modified file may be copied and distributed in accordance
31 *  the above-referenced license. It is provided for critique and
32 *  developmental purposes without any warranty nor representation
33 *  by the authors or by TGA Technologies.
34 */
35
36#ifndef _BSP_H
37#define _BSP_H
38
39#include <rtems.h>
40#include <rtems/clockdrv.h>
41#include <rtems/console.h>
42
43#include <bspopts.h>
44#include <bsp/default-initial-extension.h>
45
46#include <termios.h> /* for tcflag_t */
47
48#include <sh/sci.h>
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54#if 1
55/* FIXME:
56 *   These definitions will be no longer necessary if the old
57 *   implementation of SCI driver will be droped
58 */
59#define BSP_CONSOLE_DEVNAME "/dev/sci0"
60#define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0)
61#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
62#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
63#endif
64
65/* Constants */
66
67/*
68 * Defined in the linker script 'linkcmds'
69 */
70extern void *CPU_Interrupt_stack_low;
71extern void *CPU_Interrupt_stack_high;
72
73/*
74 * BSP methods that cross file boundaries.
75 */
76void bsp_hw_init(void);
77extern int _sci_get_brparms(
78  tcflag_t      cflag,
79  unsigned char *smr,
80  unsigned char *brr
81);
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
Note: See TracBrowser for help on using the repository browser.