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

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

Remove duplicate white lines.

  • 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.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 *  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 rtems_bsp_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 uint32_t         HeapStart ;
93extern uint32_t         HeapEnd ;
94extern uint32_t         WorkSpaceStart ;
95extern uint32_t         WorkSpaceEnd ;
96
97extern void *CPU_Interrupt_stack_low ;
98extern void *CPU_Interrupt_stack_high ;
99
100/* miscellaneous stuff assumed to exist */
101
102extern rtems_configuration_table BSP_Configuration;
103
104extern void bsp_cleanup( void );
105
106/*
107 *  Device Driver Table Entries
108 */
109
110/*
111 * Redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
112 */
113#undef CONSOLE_DRIVER_TABLE_ENTRY
114#define CONSOLE_DRIVER_TABLE_ENTRY \
115  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
116  { console_initialize, console_open, console_close, \
117      console_read, console_write, console_control }
118
119/*
120 * NOTE: Use the standard Clock driver entry
121 */
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
128/* end of include file */
Note: See TracBrowser for help on using the repository browser.