source: rtems/c/src/lib/libbsp/h8300/h8sim/include/bsp.h @ 501d312

4.104.114.84.95
Last change on this file since 501d312 was 501d312, checked in by Joel Sherrill <joel.sherrill@…>, on 07/06/00 at 20:07:34

Added baseline for h8 simulator BSP to support the simulator in gdb 5.0

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[501d312]1/*  bsp.h
2 *
3 *  This include file contains some definitions specific to the
4 *  i960 simulator in gdb.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef __CVME961_h
17#define __CVME961_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <rtems.h>
24#include <iosupp.h>
25#include <console.h>
26#include <clockdrv.h>
27
28/*
29 *  Define the time limits for RTEMS Test Suite test durations.
30 *  Long test and short test duration limits are provided.  These
31 *  values are in seconds and need to be converted to ticks for the
32 *  application.
33 *
34 */
35
36#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
37#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
38
39/*
40 *  Define the interrupt mechanism for Time Test 27
41 *
42 *  NOTE: Following are for i960CA and are board independent
43 *
44 */
45
46#define MUST_WAIT_FOR_INTERRUPT 0
47
48#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */
49
50#define Cause_tm27_intr()  /* i960_cause_intr( 0x62 ) */
51
52#define Clear_tm27_intr()  /* i960_clear_intr( 6 ) */
53
54#define Lower_tm27_intr()
55
56/*
57 *  Simple spin delay in microsecond units for device drivers.
58 *  This is very dependent on the clock speed of the target.
59 */
60
61#define delay( microseconds ) \
62  { register rtems_unsigned32 _delay=(microseconds); \
63    register rtems_unsigned32 _tmp = 0; /* initialized to avoid warning */ \
64    asm volatile( "0: \
65                     remo      3,31,%0 ; \
66                     cmpo      0,%0 ; \
67                     subo      1,%1,%1 ; \
68                     cmpobne.t 0,%1,0b " \
69                  : "=d" (_tmp), "=d" (_delay) \
70                  : "0"  (_tmp), "1"  (_delay) ); \
71  }
72
73/* Constants */
74
75/* miscellaneous stuff assumed to exist */
76
77extern rtems_configuration_table BSP_Configuration;
78
79/*
80 *  Device Driver Table Entries
81 */
82
83/*
84 * NOTE: Use the standard Console driver entry
85 */
86 
87/*
88 * NOTE: Use the standard Clock driver entry
89 */
90
91/* functions */
92
93void bsp_cleanup( void );
94
95/*
96i960_isr_entry set_vector( rtems_isr_entry, unsigned int, unsigned int );
97*/
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif
104/* end of include file */
Note: See TracBrowser for help on using the repository browser.