source: rtems/c/src/lib/libbsp/sh/shsim/include/bsp.h @ f0ef873

4.104.114.84.95
Last change on this file since f0ef873 was f0ef873, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/01 at 13:12:23

2001-05-09 Ralf Corsepius <corsepiu@…>

  • scitab/.cvsignore: Add.
  • configure.in: Add --enable-console, CPU_CLOCK_RATE_HZ, autoheader bspopt.h.
  • include/bsp.h: Complete rewrite based on the AMOS-BSP.
  • README: Update.
  • bsp_specs: copy from gensh1
  • Property mode set to 100644
File size: 2.9 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.OARcorp.com/rtems/license.html.
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 <clockdrv.h>
33#include <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 *  Define the time limits for RTEMS Test Suite test durations.
54 *  Long test and short test duration limits are provided.  These
55 *  values are in seconds and need to be converted to ticks for the
56 *  application.
57 *
58 * FIXME: This should not be here.
59 */
60
61#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
62#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
63
64/*
65 *  Stuff for Time Test 27
66 *
67 * FIXME: This should not be here.
68 */
69
70#define MUST_WAIT_FOR_INTERRUPT 0
71
72#define Install_tm27_vector( handler )
73#define Cause_tm27_intr()
74#define Clear_tm27_intr()
75
76/* Constants */
77
78/*
79 *  Simple spin delay in microsecond units for device drivers.
80 *  This is very dependent on the clock speed of the target.
81 *
82 * FIXME: Not applicable with gdb's simulator
83 * Kept for sourcecode compatibility with other sh-BSPs
84 */
85#define delay( microseconds ) CPU_delay(microseconds)
86#define sh_delay( microseconds ) CPU_delay(microseconds)
87
88/*
89 * Defined in the linker script 'linkcmds'
90 */
91
92extern unsigned32       HeapStart ;
93extern unsigned32       HeapEnd ;
94extern unsigned32       WorkSpaceStart ;
95extern unsigned32       WorkSpaceEnd ;
96
97extern void *CPU_Interrupt_stack_low ;
98extern void *CPU_Interrupt_stack_high ;
99
100 
101/* miscellaneous stuff assumed to exist */
102
103extern rtems_configuration_table BSP_Configuration;
104
105extern void bsp_cleanup( void );
106
107/*
108 *  Device Driver Table Entries
109 */
110
111/*
112 * Redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
113 */
114#undef CONSOLE_DRIVER_TABLE_ENTRY
115#define CONSOLE_DRIVER_TABLE_ENTRY \
116  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
117  { console_initialize, console_open, console_close, \
118      console_read, console_write, console_control }
119 
120/*
121 * NOTE: Use the standard Clock driver entry
122 */
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
129/* end of include file */
Note: See TracBrowser for help on using the repository browser.