source: rtems/c/src/lib/libbsp/h8300/h8sim/include/bsp.h @ 3344730a

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

2004-04-21 Ralf Corsepius <ralf_corsepius@…>

PR 613/bsps

  • include/bsp.h: Remove MAX_LONG_TEST_DURATION.
  • Property mode set to 100644
File size: 2.0 KB
Line 
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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __CVME961_h
17#define __CVME961_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <bspopts.h>
24
25#include <rtems.h>
26#include <rtems/iosupp.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29
30/*
31 *  Define the interrupt mechanism for Time Test 27
32 *
33 *  NOTE: Following are for i960CA and are board independent
34 *
35 */
36
37#define MUST_WAIT_FOR_INTERRUPT 0
38
39#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */
40
41#define Cause_tm27_intr()  /* i960_cause_intr( 0x62 ) */
42
43#define Clear_tm27_intr()  /* i960_clear_intr( 6 ) */
44
45#define Lower_tm27_intr()
46
47/*
48 *  Simple spin delay in microsecond units for device drivers.
49 *  This is very dependent on the clock speed of the target.
50 */
51
52#define rtems_bsp_delay( microseconds ) \
53  { register uint32_t         _delay=(microseconds); \
54    register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
55    asm volatile( "0: \
56                     remo      3,31,%0 ; \
57                     cmpo      0,%0 ; \
58                     subo      1,%1,%1 ; \
59                     cmpobne.t 0,%1,0b " \
60                  : "=d" (_tmp), "=d" (_delay) \
61                  : "0"  (_tmp), "1"  (_delay) ); \
62  }
63
64/* Constants */
65
66/* miscellaneous stuff assumed to exist */
67
68extern rtems_configuration_table BSP_Configuration;
69
70/*
71 *  Device Driver Table Entries
72 */
73
74/*
75 * NOTE: Use the standard Console driver entry
76 */
77
78/*
79 * NOTE: Use the standard Clock driver entry
80 */
81
82/* functions */
83
84void bsp_cleanup( void );
85
86/*
87i960_isr_entry set_vector( rtems_isr_entry, unsigned int, unsigned int );
88*/
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
95/* end of include file */
Note: See TracBrowser for help on using the repository browser.