source: rtems/c/src/lib/libbsp/sh/shsim/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: 2.5 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  SH-gdb simulator BSP
5 *
6 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7 *
8 *  COPYRIGHT (c) 2001, Ralf Corsepius, 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 *  COPYRIGHT (c) 2001.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.com/license/LICENSE.
20 *
21 * $Id$
22 */
23
24#ifndef __bsp_h
25#define __bsp_h
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <rtems.h>
32#include <rtems/clockdrv.h>
33#include <rtems/console.h>
34
35/*
36 *  confdefs.h overrides for this BSP:
37 *   - number of termios serial ports (defaults to 1)
38 *   - Interrupt stack space is not minimum if defined.
39 */
40
41#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 0
42#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
43
44#include <bspopts.h>
45
46/*
47 * FIXME: One of these would be enough.
48 */
49#include <gdbsci.h>
50#include <rtems/devnull.h>
51
52/*
53 *  Stuff for Time Test 27
54 *
55 * FIXME: This should not be here.
56 */
57
58#define MUST_WAIT_FOR_INTERRUPT 0
59
60#define Install_tm27_vector( handler )
61#define Cause_tm27_intr()
62#define Clear_tm27_intr()
63
64/* Constants */
65
66/*
67 *  Simple spin delay in microsecond units for device drivers.
68 *  This is very dependent on the clock speed of the target.
69 *
70 * FIXME: Not applicable with gdb's simulator
71 * Kept for sourcecode compatibility with other sh-BSPs
72 */
73#define rtems_bsp_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 rtems_configuration_table BSP_Configuration;
91
92extern void bsp_cleanup( void );
93
94/*
95 *  Device Driver Table Entries
96 */
97
98/*
99 * Redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
100 */
101#undef CONSOLE_DRIVER_TABLE_ENTRY
102#define CONSOLE_DRIVER_TABLE_ENTRY \
103  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
104  { console_initialize, console_open, console_close, \
105      console_read, console_write, console_control }
106
107/*
108 * NOTE: Use the standard Clock driver entry
109 */
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif
116/* end of include file */
Note: See TracBrowser for help on using the repository browser.