source: rtems/c/src/lib/libbsp/h8300/h8sim/include/bsp.h @ 2ee1495

4.104.114.84.95
Last change on this file since 2ee1495 was 2ee1495, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 22, 2004 at 1:27:01 PM

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

  • include/bsp.h: Split out tmtest27 support.
  • include/tm27.h: New.
  • Property mode set to 100644
File size: 1.6 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 *  Simple spin delay in microsecond units for device drivers.
32 *  This is very dependent on the clock speed of the target.
33 */
34
35#define rtems_bsp_delay( microseconds ) \
36  { register uint32_t         _delay=(microseconds); \
37    register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
38    asm volatile( "0: \
39                     remo      3,31,%0 ; \
40                     cmpo      0,%0 ; \
41                     subo      1,%1,%1 ; \
42                     cmpobne.t 0,%1,0b " \
43                  : "=d" (_tmp), "=d" (_delay) \
44                  : "0"  (_tmp), "1"  (_delay) ); \
45  }
46
47/* Constants */
48
49/* miscellaneous stuff assumed to exist */
50
51extern rtems_configuration_table BSP_Configuration;
52
53/*
54 *  Device Driver Table Entries
55 */
56
57/*
58 * NOTE: Use the standard Console driver entry
59 */
60
61/*
62 * NOTE: Use the standard Clock driver entry
63 */
64
65/* functions */
66
67void bsp_cleanup( void );
68
69/*
70i960_isr_entry set_vector( rtems_isr_entry, unsigned int, unsigned int );
71*/
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif
78/* end of include file */
Note: See TracBrowser for help on using the repository browser.