source: rtems/c/src/lib/libbsp/sh/gensh4/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.2 KB
Line 
1/*
2 *  generic sh4 BSP
3 *
4 *  This include file contains all board IO definitions.
5 */
6
7/*
8 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
9 *  Author: Victor V. Vengerov <vvv@oktet.ru>
10 *
11 *  Based on work:
12 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
13 *
14 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
15 *
16 *  This program is distributed in the hope that it will be useful,
17 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 *
21 *  COPYRIGHT (c) 1998-2001.
22 *  On-Line Applications Research Corporation (OAR).
23 *
24 *  The license and distribution terms for this file may be
25 *  found in the file LICENSE in this distribution or at
26 *  http://www.rtems.org/license/LICENSE.
27 *
28 *  Minor adaptations for sh2 by:
29 *  John M. Mills (jmills@tga.com)
30 *  TGA Technologies, Inc.
31 *  100 Pinnacle Way, Suite 140
32 *  Norcross, GA 30071 U.S.A.
33 *
34 *  This modified file may be copied and distributed in accordance
35 *  the above-referenced license. It is provided for critique and
36 *  developmental purposes without any warranty nor representation
37 *  by the authors or by TGA Technologies.
38 */
39
40#ifndef _BSP_H
41#define _BSP_H
42
43#include <rtems.h>
44#include <rtems/clockdrv.h>
45#include <rtems/console.h>
46#include <bspopts.h>
47#include <bsp/default-initial-extension.h>
48#include <termios.h> /* for tcflag_t */
49
50#include "rtems/score/sh7750_regs.h"
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56/* Constants */
57
58/*
59 * Defined in the linker script 'linkcmds'
60 */
61
62extern void *CPU_Interrupt_stack_low;
63extern void *CPU_Interrupt_stack_high;
64
65/*
66 * Defined in start.S
67 */
68extern uint32_t   boot_mode;
69#define SH4_BOOT_MODE_FLASH 0
70#define SH4_BOOT_MODE_IPL   1
71
72/*
73 *  Device Driver Table Entries
74 */
75
76/*
77 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
78 */
79#undef CONSOLE_DRIVER_TABLE_ENTRY
80#define CONSOLE_DRIVER_TABLE_ENTRY \
81  { console_initialize, console_open, console_close, \
82      console_read, console_write, console_control }
83
84/*
85 * BSP methods that cross file boundaries.
86 */
87void bsp_hw_init(void);
88void early_hw_init(void);
89void bsp_cache_on(void);
90extern int _sci_get_brparms(
91  tcflag_t      cflag,
92  unsigned char *smr,
93  unsigned char *brr
94);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif
Note: See TracBrowser for help on using the repository browser.