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
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>
[867a54a2]31#include <termios.h> /* for tcflag_t */
[50cf94d]32
[daa93ce8]33#include <bspopts.h>
[a052181]34#include <bsp/default-initial-extension.h>
[daa93ce8]35
[46dde0fc]36#ifdef __cplusplus
37extern "C" {
38#endif
39
[4a238002]40/* EDIT: To activate the sci driver, change the define below */
41#if 1
[96b2583]42#include <rtems/devnull.h>
[4a238002]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
[50cf94d]51/* Constants */
[7046cdd]52
[50cf94d]53/*
54 * Defined in the linker script 'linkcmds'
55 */
56
[8fd544d5]57extern void *CPU_Interrupt_stack_low;
58extern void *CPU_Interrupt_stack_high;
[50cf94d]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 \
[4a238002]69  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
[50cf94d]70  { console_initialize, console_open, console_close, \
71      console_read, console_write, console_control }
[0fdc099]72
[50cf94d]73/*
[0626dba]74 * BSP methods that cross file boundaries.
[50cf94d]75 */
[0626dba]76void bsp_hw_init(void);
[50cf94d]77
[867a54a2]78extern int _sci_get_brparms(
79  tcflag_t      cflag,
80  unsigned char *smr,
81  unsigned char *brr
82);
83
[50cf94d]84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.