source: rtems/c/src/lib/libbsp/sh/gensh1/include/bsp.h @ 867a54a2

4.11
Last change on this file since 867a54a2 was 867a54a2, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 8, 2015 at 6:50:56 PM

gensh1/include/bsp.h: Add needed prototype

  • Property mode set to 100644
File size: 1.9 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#include <termios.h> /* for tcflag_t */
32
33#include <bspopts.h>
34#include <bsp/default-initial-extension.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/* EDIT: To activate the sci driver, change the define below */
41#if 1
42#include <rtems/devnull.h>
43#define BSP_CONSOLE_DEVNAME "/dev/null"
44#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
45#else
46#include <sh/sci.h>
47#define BSP_CONSOLE_DEVNAME "/dev/sci0"
48#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
49#endif
50
51/* Constants */
52
53/*
54 * Defined in the linker script 'linkcmds'
55 */
56
57extern void *CPU_Interrupt_stack_low;
58extern void *CPU_Interrupt_stack_high;
59
60/*
61 *  Device Driver Table Entries
62 */
63
64/*
65 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
66 */
67#undef CONSOLE_DRIVER_TABLE_ENTRY
68#define CONSOLE_DRIVER_TABLE_ENTRY \
69  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
70  { console_initialize, console_open, console_close, \
71      console_read, console_write, console_control }
72
73/*
74 * BSP methods that cross file boundaries.
75 */
76void bsp_hw_init(void);
77
78extern int _sci_get_brparms(
79  tcflag_t      cflag,
80  unsigned char *smr,
81  unsigned char *brr
82);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.