source: rtems/c/src/lib/libbsp/m68k/ods68302/include/bsp.h @ a4318d0c

4.104.114.84.95
Last change on this file since a4318d0c was a4318d0c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/31/04 at 04:39:50

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • clock/ckinit.c, include/bare.h, include/bsp.h, include/crc.h, startup/bspstart.c, startup/cpuboot.c, startup/crc.c, startup/gdb-hooks.c, startup/m68302scc.c, timer/timer.c: Convert to using c99 fixed size types.
  • Property mode set to 100644
File size: 2.7 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-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#ifndef __GEN68302_BSP_h
18#define __GEN68302_BSP_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <bspopts.h>
25
26#include <rtems.h>
27#include <console.h>
28#include <iosupp.h>
29#include <clockdrv.h>
30#include <m68302.h>
31
32/*
33 *  confdefs.h overrides for this BSP:
34 *   - number of termios serial ports (defaults to 1)
35 *   - Interrupt stack space is not minimum if defined.
36 */
37
38/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
39#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
40
41#ifndef VARIANT
42#define VARIANT bare
43#endif
44#if defined(VARIANT)
45#define HQUOTE(a) <a.h>
46#include HQUOTE(VARIANT)
47#undef HQUOTE
48#endif
49
50/*
51 *  Define the time limits for RTEMS Test Suite test durations.
52 *  Long test and short test duration limits are provided.  These
53 *  values are in seconds and need to be converted to ticks for the
54 *  application.
55 *
56 */
57
58#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
59#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
60
61/*
62 *  Stuff for Time Test 27
63 */
64
65#define MUST_WAIT_FOR_INTERRUPT 0
66
67#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
68
69#define Cause_tm27_intr()
70
71#define Clear_tm27_intr()
72
73#define Lower_tm27_intr()
74
75/*
76 *  Simple spin delay in microsecond units for device drivers.
77 *  This is very dependent on the clock speed of the target.
78 */
79
80#define rtems_bsp_delay( microseconds ) \
81  { register uint32_t         _delay=(microseconds); \
82    register uint32_t         _tmp=123; \
83    asm volatile( "0: \
84                     nbcd      %0 ; \
85                     nbcd      %0 ; \
86                     dbf       %1,0b" \
87                  : "=d" (_tmp), "=d" (_delay) \
88                  : "0"  (_tmp), "1"  (_delay) ); \
89  }
90
91/* Constants */
92
93#define RAM_START RAM_BASE
94#define RAM_END   (RAM_BASE + RAM_SIZE)
95
96/* Structures */
97
98#ifdef GEN68302_INIT
99#undef EXTERN
100#define EXTERN
101#else
102#undef EXTERN
103#define EXTERN extern
104#endif
105
106/*
107 *  Device Driver Table Entries
108 */
109
110/*
111 * NOTE: Use the standard Console driver entry
112 */
113 
114/*
115 * NOTE: Use the standard Clock driver entry
116 */
117
118/* miscellaneous stuff assumed to exist */
119
120extern rtems_configuration_table BSP_Configuration;
121
122extern m68k_isr_entry M68Kvec[];   /* vector table address */
123
124/* functions */
125
126void bsp_cleanup( void );
127
128m68k_isr_entry set_vector(
129  rtems_isr_entry     handler,
130  rtems_vector_number vector,
131  int                 type
132);
133
134#ifdef __cplusplus
135}
136#endif
137
138#endif
139/* end of include file */
Note: See TracBrowser for help on using the repository browser.