source: rtems/c/src/lib/libbsp/m68k/sim68000/include/bsp.h @ 7dd6e8d

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

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

PR 614/bsps

  • include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains some definitions specific to the
4 *  BSVC simulator BSP.
5 *
6 *  COPYRIGHT (c) 1989-2000.
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 __BSVC_SIM
17#define __BSVC_SIM
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 some hardware constants here
32 */
33
34/*
35 *  Define the time limits for RTEMS Test Suite test durations.
36 *  Long test and short test duration limits are provided.  These
37 *  values are in seconds and need to be converted to ticks for the
38 *  application.
39 *
40 */
41
42#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
43
44/*
45 *  Define the interrupt mechanism for Time Test 27
46 *
47 *  NOTE: Following are not defined for the BSVC Simulator YET.
48 *
49 */
50
51#define MUST_WAIT_FOR_INTERRUPT 0
52
53#define Install_tm27_vector( handler ) /* set_vector( (handler), 6, 1 ) */
54
55#define Cause_tm27_intr()
56
57#define Clear_tm27_intr()
58
59#define Lower_tm27_intr()
60
61/*
62 *  Simple spin delay in microsecond units for device drivers.
63 *  This is very dependent on the clock speed of the target.
64 */
65
66#define rtems_bsp_delay( microseconds ) \
67  { register uint32_t         _delay=(microseconds); \
68    register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
69    asm volatile( "0: \
70                     remo      3,31,%0 ; \
71                     cmpo      0,%0 ; \
72                     subo      1,%1,%1 ; \
73                     cmpobne.t 0,%1,0b " \
74                  : "=d" (_tmp), "=d" (_delay) \
75                  : "0"  (_tmp), "1"  (_delay) ); \
76  }
77
78/* Constants */
79
80/* miscellaneous stuff assumed to exist */
81
82extern rtems_configuration_table BSP_Configuration;
83
84/*
85 *  Device Driver Table Entries
86 */
87
88/*
89 * NOTE: Use the standard Console driver entry
90 */
91
92/*
93 * NOTE: Use the standard Clock driver entry
94 */
95
96/* functions */
97
98void bsp_cleanup( void );
99
100m68k_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif
107/* end of include file */
Note: See TracBrowser for help on using the repository browser.