source: rtems/c/src/lib/libbsp/sh/gensh1/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: 1.7 KB
Line 
1/*
2 *  generic sh1
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
25#ifndef _BSP_H
26#define _BSP_H
27
28#include <rtems.h>
29#include <rtems/clockdrv.h>
30#include <rtems/console.h>
31
32#include <bspopts.h>
33#include <bsp/default-initial-extension.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/* EDIT: To activate the sci driver, change the define below */
40#if 1
41#include <rtems/devnull.h>
42#define BSP_CONSOLE_DEVNAME "/dev/null"
43#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
44#else
45#include <sh/sci.h>
46#define BSP_CONSOLE_DEVNAME "/dev/sci0"
47#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
48#endif
49
50/* Constants */
51
52/*
53 * Defined in the linker script 'linkcmds'
54 */
55
56extern void *CPU_Interrupt_stack_low;
57extern void *CPU_Interrupt_stack_high;
58
59/*
60 *  Device Driver Table Entries
61 */
62
63/*
64 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
65 */
66#undef CONSOLE_DRIVER_TABLE_ENTRY
67#define CONSOLE_DRIVER_TABLE_ENTRY \
68  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
69  { console_initialize, console_open, console_close, \
70      console_read, console_write, console_control }
71
72/*
73 * BSP methods that cross file boundaries.
74 */
75void bsp_hw_init(void);
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
Note: See TracBrowser for help on using the repository browser.