source: rtems/c/src/lib/libbsp/m68k/gen68340/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.4 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup m68k_gen68340
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 * Board Support Package for `Generic' Motorola MC68340
11 *
12 * Based on the `gen68360' board support package, and covered by the
13 * original distribution terms.
14 */
15
16/*  bsp.h
17 *
18 *  COPYRIGHT (c) 1989-1999.
19 *  On-Line Applications Research Corporation (OAR).
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.rtems.org/license/LICENSE.
24 */
25
26#ifndef _BSP_H
27#define _BSP_H
28
29#ifndef ASM
30
31#include <bspopts.h>
32#include <bsp/default-initial-extension.h>
33
34#include <rtems.h>
35#include <rtems/console.h>
36#include <rtems/iosupp.h>
37#include <rtems/clockdrv.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/**
44 * @defgroup m68k_gen68340 Motorola MC68340 Support
45 *
46 * @ingroup bsp_m68k
47 *
48 * @brief Motorola MC68340 support.
49 */
50
51/* Constants */
52
53/* Structures */
54
55extern rtems_isr_entry M68Kvec[];   /* vector table address */
56
57/* functions */
58
59rtems_isr_entry set_vector(
60  rtems_isr_entry     handler,
61  rtems_vector_number vector,
62  int                 type
63);
64
65/*
66 *  Methods used across files inside the BSP
67 */
68int dbug_in_char( int minor );
69void dbug_out_char( int minor, int ch );
70int dbug_char_present( int minor );
71void _dbug_dumpanic(void);
72
73/*
74 *  Only called from .S but prototyped here to capture the dependecy.
75 */
76void _Init68340 (void);
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* !ASM */
83
84#endif
Note: See TracBrowser for help on using the repository browser.