source: rtems/c/src/lib/libbsp/sh/simsh4/include/bsp.h @ 3344730a

4.104.114.84.95
Last change on this file since 3344730a was 3344730a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:21:25

2004-04-21 Ralf Corsepius <ralf_corsepius@…>

PR 613/bsps

  • include/bsp.h: Remove MAX_LONG_TEST_DURATION.
  • Property mode set to 100644
File size: 3.2 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 __simsh4_h
42#define __simsh4_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#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
63
64/* !!! Should be defined in accordance to simulator considerations.*/
65#define CLOCK_VECTOR 32
66
67/*
68 *  Stuff for Time Test 27
69 */
70
71#define MUST_WAIT_FOR_INTERRUPT 0
72
73#define Install_tm27_vector( handler ) \
74{ \
75  rtems_isr_entry ignored ; \
76  rtems_interrupt_catch( (handler), 0, &ignored ) ; \
77}
78
79#define Cause_tm27_intr()
80
81#define Clear_tm27_intr()
82
83#define Lower_tm27_intr()
84
85/* Constants */
86
87/*
88 *  Simple spin delay in microsecond units for device drivers.
89 *  This is very dependent on the clock speed of the target.
90 */
91
92#define delay( microseconds ) CPU_delay(microseconds)
93#define sh_delay( microseconds ) CPU_delay( microseconds )
94
95/*
96 * Defined in the linker script 'linkcmds'
97 */
98
99extern uint32_t         HeapStart ;
100extern uint32_t         HeapEnd ;
101extern uint32_t         WorkSpaceStart ;
102extern uint32_t         WorkSpaceEnd ;
103
104extern void *CPU_Interrupt_stack_low ;
105extern void *CPU_Interrupt_stack_high ;
106
107/* miscellaneous stuff assumed to exist */
108
109extern rtems_configuration_table BSP_Configuration;
110
111extern rtems_cpu_table           Cpu_table;
112
113extern void bsp_cleanup( void );
114
115/*
116 *  Device Driver Table Entries
117 */
118
119#undef CONSOLE_DRIVER_TABLE_ENTRY
120#define CONSOLE_DRIVER_TABLE_ENTRY \
121  { console_initialize, console_open, console_close, \
122      console_read, console_write, console_control }
123
124#define RAMDISK_DRIVER_TABLE_ENTRY \
125  { ramdisk_initialize, ramdisk_open, ramdisk_close, \
126        ramdisk_read, ramdisk_write, ramdisk_control }
127
128/*
129 * NOTE: Use the standard Clock driver entry
130 */
131
132/*
133 * Trap interface with simulator
134 */
135int __trap34();
136
137#ifdef __cplusplus
138}
139#endif
140
141#endif
142/* end of include file */
Note: See TracBrowser for help on using the repository browser.