OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [h8300/] [h8sim/] [include/] [bsp.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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
 *  bsp.h,v 1.3 2001/09/28 13:18:01 joel Exp
14
 */
15
 
16
#ifndef __CVME961_h
17
#define __CVME961_h
18
 
19
#ifdef __cplusplus
20
extern "C" {
21
#endif
22
 
23
#include <bspopts.h>
24
 
25
#include <rtems.h>
26
#include <iosupp.h>
27
#include <console.h>
28
#include <clockdrv.h>
29
 
30
/*
31
 *  Define the time limits for RTEMS Test Suite test durations.
32
 *  Long test and short test duration limits are provided.  These
33
 *  values are in seconds and need to be converted to ticks for the
34
 *  application.
35
 *
36
 */
37
 
38
#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
39
#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
40
 
41
/*
42
 *  Define the interrupt mechanism for Time Test 27
43
 *
44
 *  NOTE: Following are for i960CA and are board independent
45
 *
46
 */
47
 
48
#define MUST_WAIT_FOR_INTERRUPT 0
49
 
50
#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */
51
 
52
#define Cause_tm27_intr()  /* i960_cause_intr( 0x62 ) */
53
 
54
#define Clear_tm27_intr()  /* i960_clear_intr( 6 ) */
55
 
56
#define Lower_tm27_intr()
57
 
58
/*
59
 *  Simple spin delay in microsecond units for device drivers.
60
 *  This is very dependent on the clock speed of the target.
61
 */
62
 
63
#define rtems_bsp_delay( microseconds ) \
64
  { register rtems_unsigned32 _delay=(microseconds); \
65
    register rtems_unsigned32 _tmp = 0; /* initialized to avoid warning */ \
66
    asm volatile( "0: \
67
                     remo      3,31,%0 ; \
68
                     cmpo      0,%0 ; \
69
                     subo      1,%1,%1 ; \
70
                     cmpobne.t 0,%1,0b " \
71
                  : "=d" (_tmp), "=d" (_delay) \
72
                  : "0"  (_tmp), "1"  (_delay) ); \
73
  }
74
 
75
/* Constants */
76
 
77
/* miscellaneous stuff assumed to exist */
78
 
79
extern rtems_configuration_table BSP_Configuration;
80
 
81
/*
82
 *  Device Driver Table Entries
83
 */
84
 
85
/*
86
 * NOTE: Use the standard Console driver entry
87
 */
88
 
89
/*
90
 * NOTE: Use the standard Clock driver entry
91
 */
92
 
93
/* functions */
94
 
95
void bsp_cleanup( void );
96
 
97
/*
98
i960_isr_entry set_vector( rtems_isr_entry, unsigned int, unsigned int );
99
*/
100
 
101
#ifdef __cplusplus
102
}
103
#endif
104
 
105
#endif
106
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.