source: rtems/c/src/lib/libbsp/m68k/gen68302/include/bsp.h @ 9526d217

4.104.114.84.95
Last change on this file since 9526d217 was 9e86dd7d, checked in by Joel Sherrill <joel.sherrill@…>, on 06/07/95 at 01:27:28

incorporated mc68302 support

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  XXX : put yours in here
6 *
7 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
8 *  On-Line Applications Research Corporation (OAR).
9 *  All rights assigned to U.S. Government, 1994.
10 *
11 *  This material may be reproduced by or for the U.S. Government pursuant
12 *  to the copyright license under the clause at DFARS 252.227-7013.  This
13 *  notice must appear in all copies of this file and its derivatives.
14 *
15 *  $Id$
16 */
17
18#ifndef __GEN68302_BSP_h
19#define __GEN68302_BSP_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <rtems.h>
26#include <iosupp.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 *  Stuff for Time Test 27
41 */
42
43#define MUST_WAIT_FOR_INTERRUPT 0
44
45#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
46
47#define Cause_tm27_intr()
48
49#define Clear_tm27_intr()
50
51#define Lower_tm27_intr()
52
53/*
54 *  Simple spin delay in microsecond units for device drivers.
55 *  This is very dependent on the clock speed of the target.
56 */
57
58#define delay( microseconds ) \
59  { register rtems_unsigned32 _delay=(microseconds); \
60    register rtems_unsigned32 _tmp=123; \
61    asm volatile( "0: \
62                     nbcd      %0 ; \
63                     nbcd      %0 ; \
64                     dbf       %1,0b" \
65                  : "=d" (_tmp), "=d" (_delay) \
66                  : "0"  (_tmp), "1"  (_delay) ); \
67  }
68
69/* Constants */
70
71#define RAM_START 0
72#define RAM_END   0x040000
73
74/* Structures */
75
76#ifdef GEN68302_INIT
77#undef EXTERN
78#define EXTERN
79#else
80#undef EXTERN
81#define EXTERN extern
82#endif
83
84/* miscellaneous stuff assumed to exist */
85
86extern rtems_configuration_table BSP_Configuration;
87
88extern m68k_isr_entry M68Kvec[];   /* vector table address */
89
90/* functions */
91
92void bsp_cleanup( void );
93
94m68k_isr_entry set_vector(
95  rtems_isr_entry     handler,
96  rtems_vector_number vector,
97  int                 type
98);
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105/* end of include file */
Note: See TracBrowser for help on using the repository browser.