source: rtems/bsps/sh/gensh1/include/bsp.h @ 52cdb134

5
Last change on this file since 52cdb134 was 52cdb134, checked in by Joel Sherrill <joel@…>, on Mar 14, 2018 at 9:11:51 PM

bsps/sh/gensh1/include/bsp.h: Fix redefined warning

  • Property mode set to 100644
File size: 1.5 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 LIBBSP_SH_GENSH1_BSP_H
26#define LIBBSP_SH_GENSH1_BSP_H
27
28#include <rtems.h>
29#include <termios.h> /* for tcflag_t */
30
31#include <bspopts.h>
32#include <bsp/default-initial-extension.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/* EDIT: To activate the sci driver, change the define below */
39#if 1
40#include <rtems/devnull.h>
41#define BSP_CONSOLE_DEVNAME "/dev/null"
42#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
43#else
44#include <sh/sci.h>
45#define BSP_CONSOLE_DEVNAME "/dev/sci0"
46#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
47#endif
48
49/* Constants */
50
51/*
52 * Defined in the linker script 'linkcmds'
53 */
54
55extern void *CPU_Interrupt_stack_low;
56extern void *CPU_Interrupt_stack_high;
57
58/*
59 * BSP methods that cross file boundaries.
60 */
61void bsp_hw_init(void);
62
63extern int _sci_get_brparms(
64  tcflag_t      cflag,
65  unsigned char *smr,
66  unsigned char *brr
67);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif
Note: See TracBrowser for help on using the repository browser.