source: rtems/c/src/lib/libbsp/sh/simsh4/include/bsp.h @ 628d804

4.104.115
Last change on this file since 628d804 was 628d804, checked in by Joel Sherrill <joel.sherrill@…>, on 09/15/08 at 19:18:36

2008-09-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, include/bsp.h, startup/hw_init.c, startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. After factoring this out, it turned out that all SuperH BSPs has the same bsp_start() implementation so this was made shared.
  • startup/bspstart.c: Removed.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  sh4 simulator bsp
5 *
6 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
7 *  Author: Victor V. Vengerov <vvv@oktet.ru>
8 *          Alexandra Kossovsky <sasha@oktet.ru>
9 *
10 *  Based on work:
11 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
12 *
13 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
14 *
15 *  This program is distributed in the hope that it will be useful,
16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 *
20 *  COPYRIGHT (c) 1998-2001.
21 *  On-Line Applications Research Corporation (OAR).
22 *
23 *  The license and distribution terms for this file may be
24 *  found in the file LICENSE in this distribution or at
25 *  http://www.rtems.com/license/LICENSE.
26 *
27 *  Minor adaptations for sh2 by:
28 *  John M. Mills (jmills@tga.com)
29 *  TGA Technologies, Inc.
30 *  100 Pinnacle Way, Suite 140
31 *  Norcross, GA 30071 U.S.A.
32 *
33 *  This modified file may be copied and distributed in accordance
34 *  the above-referenced license. It is provided for critique and
35 *  developmental purposes without any warranty nor representation
36 *  by the authors or by TGA Technologies.
37 *
38 *  $Id$
39 */
40
41#ifndef _BSP_H
42#define _BSP_H
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#include <rtems.h>
49#include <rtems/clockdrv.h>
50#include <rtems/console.h>
51#include <ramdisk.h>
52
53#include <bspopts.h>
54
55/*
56 *  confdefs.h overrides for this BSP:
57 *   - number of termios serial ports (defaults to 1)
58 *   - Interrupt stack space is not minimum if defined.
59 */
60
61#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
62
63/* !!! Should be defined in accordance to simulator considerations.*/
64#define CLOCK_VECTOR 32
65
66/* Constants */
67
68/*
69 *  Simple spin delay in microsecond units for device drivers.
70 *  This is very dependent on the clock speed of the target.
71 */
72
73#define delay( microseconds ) CPU_delay(microseconds)
74#define sh_delay( microseconds ) CPU_delay( microseconds )
75
76/*
77 * Defined in the linker script 'linkcmds'
78 */
79extern void *CPU_Interrupt_stack_low ;
80extern void *CPU_Interrupt_stack_high ;
81
82/*
83 *  Device Driver Table Entries
84 */
85
86#undef CONSOLE_DRIVER_TABLE_ENTRY
87#define CONSOLE_DRIVER_TABLE_ENTRY \
88  { console_initialize, console_open, console_close, \
89      console_read, console_write, console_control }
90
91#define RAMDISK_DRIVER_TABLE_ENTRY \
92  { ramdisk_initialize, ramdisk_open, ramdisk_close, \
93        ramdisk_read, ramdisk_write, ramdisk_control }
94
95/*
96 * NOTE: Use the standard Clock driver entry
97 */
98
99/*
100 * Trap interface with simulator
101 */
102int __trap34();
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif
Note: See TracBrowser for help on using the repository browser.