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

4.11
Last change on this file since 46dde0fc was 46dde0fc, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 23, 2014 at 8:05:17 AM

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
RevLine 
[50cf94d]1/*
2 *  generic sh1
3 *
[0626dba]4 *  This include file contains all board IO definitions.
5 */
6
7/*
[50cf94d]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.
[0fdc099]15 *
[50cf94d]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
[c499856]22 *  http://www.rtems.org/license/LICENSE.
[50cf94d]23 */
24
[34c4852]25#ifndef _BSP_H
26#define _BSP_H
[50cf94d]27
28#include <rtems.h>
[0a0d67c5]29#include <rtems/clockdrv.h>
30#include <rtems/console.h>
[50cf94d]31
[daa93ce8]32#include <bspopts.h>
[a052181]33#include <bsp/default-initial-extension.h>
[daa93ce8]34
[46dde0fc]35#ifdef __cplusplus
36extern "C" {
37#endif
38
[4a238002]39/* EDIT: To activate the sci driver, change the define below */
40#if 1
[96b2583]41#include <rtems/devnull.h>
[4a238002]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
[50cf94d]50/* Constants */
[7046cdd]51
[50cf94d]52/*
53 * Defined in the linker script 'linkcmds'
54 */
55
[8fd544d5]56extern void *CPU_Interrupt_stack_low;
57extern void *CPU_Interrupt_stack_high;
[50cf94d]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 \
[4a238002]68  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
[50cf94d]69  { console_initialize, console_open, console_close, \
70      console_read, console_write, console_control }
[0fdc099]71
[50cf94d]72/*
[0626dba]73 * BSP methods that cross file boundaries.
[50cf94d]74 */
[0626dba]75void bsp_hw_init(void);
[50cf94d]76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
Note: See TracBrowser for help on using the repository browser.