source: rtems/c/src/lib/libbsp/m68k/ods68302/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.4 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 <rtems/console.h>
28#include <rtems/iosupp.h>
29#include <rtems/clockdrv.h>
30#include <rtems/m68k/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 *  Stuff for Time Test 27
52 */
53
54#define MUST_WAIT_FOR_INTERRUPT 0
55
56#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
57
58#define Cause_tm27_intr()
59
60#define Clear_tm27_intr()
61
62#define Lower_tm27_intr()
63
64/*
65 *  Simple spin delay in microsecond units for device drivers.
66 *  This is very dependent on the clock speed of the target.
67 */
68
69#define rtems_bsp_delay( microseconds ) \
70  { register uint32_t         _delay=(microseconds); \
71    register uint32_t         _tmp=123; \
72    asm volatile( "0: \
73                     nbcd      %0 ; \
74                     nbcd      %0 ; \
75                     dbf       %1,0b" \
76                  : "=d" (_tmp), "=d" (_delay) \
77                  : "0"  (_tmp), "1"  (_delay) ); \
78  }
79
80/* Constants */
81
82#define RAM_START RAM_BASE
83#define RAM_END   (RAM_BASE + RAM_SIZE)
84
85/* Structures */
86
87#ifdef GEN68302_INIT
88#undef EXTERN
89#define EXTERN
90#else
91#undef EXTERN
92#define EXTERN extern
93#endif
94
95/*
96 *  Device Driver Table Entries
97 */
98
99/*
100 * NOTE: Use the standard Console driver entry
101 */
102
103/*
104 * NOTE: Use the standard Clock driver entry
105 */
106
107/* miscellaneous stuff assumed to exist */
108
109extern rtems_configuration_table BSP_Configuration;
110
111extern m68k_isr_entry M68Kvec[];   /* vector table address */
112
113/* functions */
114
115void bsp_cleanup( void );
116
117m68k_isr_entry set_vector(
118  rtems_isr_entry     handler,
119  rtems_vector_number vector,
120  int                 type
121);
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
128/* end of include file */
Note: See TracBrowser for help on using the repository browser.