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

4.104.114.84.95
Last change on this file since f48d86a8 was f48d86a8, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:52:49

2003-09-04 Joel Sherrill <joel@…>

  • include/bsp.h, start/start.S, startup/bspstart.c, trap34/console-io.c: URL for license changed.
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[f0ef873]1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  SH-gdb simulator BSP
[86ec6ed]5 *
[f0ef873]6 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
[86ec6ed]7 *
[f0ef873]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.
[86ec6ed]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
[f48d86a8]19 *  http://www.rtems.com/license/LICENSE.
[86ec6ed]20 *
[f0ef873]21 * $Id$
[86ec6ed]22 */
23
[f0ef873]24#ifndef __bsp_h
25#define __bsp_h
[86ec6ed]26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <rtems.h>
32#include <clockdrv.h>
[f0ef873]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>
[86ec6ed]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 *
[f0ef873]58 * FIXME: This should not be here.
[86ec6ed]59 */
60
61#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
62#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
63
64/*
[f0ef873]65 *  Stuff for Time Test 27
[86ec6ed]66 *
[f0ef873]67 * FIXME: This should not be here.
[86ec6ed]68 */
69
70#define MUST_WAIT_FOR_INTERRUPT 0
71
[f0ef873]72#define Install_tm27_vector( handler )
73#define Cause_tm27_intr()
74#define Clear_tm27_intr()
75
76/* Constants */
[86ec6ed]77
[f0ef873]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 */
[cf282090]85#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
[f0ef873]86#define sh_delay( microseconds ) CPU_delay(microseconds)
[86ec6ed]87
[f0ef873]88/*
89 * Defined in the linker script 'linkcmds'
90 */
[86ec6ed]91
[f0ef873]92extern unsigned32       HeapStart ;
93extern unsigned32       HeapEnd ;
94extern unsigned32       WorkSpaceStart ;
95extern unsigned32       WorkSpaceEnd ;
[86ec6ed]96
[f0ef873]97extern void *CPU_Interrupt_stack_low ;
98extern void *CPU_Interrupt_stack_high ;
[86ec6ed]99
[f0ef873]100 
[86ec6ed]101/* miscellaneous stuff assumed to exist */
102
103extern rtems_configuration_table BSP_Configuration;
104
[f0ef873]105extern void bsp_cleanup( void );
106
[86ec6ed]107/*
108 *  Device Driver Table Entries
109 */
110
111/*
[f0ef873]112 * Redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
[86ec6ed]113 */
[f0ef873]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 }
[86ec6ed]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.