source: rtems/c/src/lib/libbsp/sh/simsh4/include/bsp.h @ 8da29747

4.104.115
Last change on this file since 8da29747 was 12bd47e, checked in by Joel Sherrill <joel.sherrill@…>, on 12/11/07 at 15:49:53

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • clock/ckinit.c, include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
  • Property mode set to 100644
File size: 2.8 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 */
79
80extern uint32_t         HeapStart ;
81extern uint32_t         HeapEnd ;
82extern uint32_t         WorkSpaceStart ;
83extern uint32_t         WorkSpaceEnd ;
84
85extern void *CPU_Interrupt_stack_low ;
86extern void *CPU_Interrupt_stack_high ;
87
88/* miscellaneous stuff assumed to exist */
89
90extern void bsp_cleanup( void );
91
92/*
93 *  Device Driver Table Entries
94 */
95
96#undef CONSOLE_DRIVER_TABLE_ENTRY
97#define CONSOLE_DRIVER_TABLE_ENTRY \
98  { console_initialize, console_open, console_close, \
99      console_read, console_write, console_control }
100
101#define RAMDISK_DRIVER_TABLE_ENTRY \
102  { ramdisk_initialize, ramdisk_open, ramdisk_close, \
103        ramdisk_read, ramdisk_write, ramdisk_control }
104
105/*
106 * NOTE: Use the standard Clock driver entry
107 */
108
109/*
110 * Trap interface with simulator
111 */
112int __trap34();
113
114#ifdef __cplusplus
115}
116#endif
117
118#endif
Note: See TracBrowser for help on using the repository browser.