source: rtems/c/src/lib/libbsp/sh/gensh1/include/bsp.h @ 053abcda

4.115
Last change on this file since 053abcda was 053abcda, checked in by Joel Sherrill <joel.sherrill@…>, on 04/23/14 at 23:38:43

multiple BSPs: Remove BSP_SMALL_MEMORY

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  generic sh1
5 *
6 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7 *
8 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 *
15 *  COPYRIGHT (c) 1998.
16 *  On-Line Applications Research Corporation (OAR).
17 *
18 *  The license and distribution terms for this file may be
19 *  found in the file LICENSE in this distribution or at
20 *  http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef _BSP_H
24#define _BSP_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <rtems.h>
31#include <rtems/clockdrv.h>
32#include <rtems/console.h>
33
34#include <bspopts.h>
35#include <bsp/default-initial-extension.h>
36
37/* EDIT: To activate the sci driver, change the define below */
38#if 1
39#include <rtems/devnull.h>
40#define BSP_CONSOLE_DEVNAME "/dev/null"
41#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
42#else
43#include <sh/sci.h>
44#define BSP_CONSOLE_DEVNAME "/dev/sci0"
45#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
46#endif
47
48/* Constants */
49
50/*
51 * Defined in the linker script 'linkcmds'
52 */
53
54extern void *CPU_Interrupt_stack_low;
55extern void *CPU_Interrupt_stack_high;
56
57/*
58 *  Device Driver Table Entries
59 */
60
61/*
62 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
63 */
64#undef CONSOLE_DRIVER_TABLE_ENTRY
65#define CONSOLE_DRIVER_TABLE_ENTRY \
66  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
67  { console_initialize, console_open, console_close, \
68      console_read, console_write, console_control }
69
70/*
71 * NOTE: Use the standard Clock driver entry
72 */
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
Note: See TracBrowser for help on using the repository browser.