OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [m68k/] [gen68302/] [include/] [bsp.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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.OARcorp.com/rtems/license.html.
13
 *
14
 *  $Id: bsp.h,v 1.2 2001-09-27 12:00:05 chris Exp $
15
 */
16
 
17
#ifndef __GEN68302_BSP_h
18
#define __GEN68302_BSP_h
19
 
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
 
24
#include <rtems.h>
25
#include <console.h>
26
#include <iosupp.h>
27
#include <clockdrv.h>
28
 
29
/*
30
 *  confdefs.h overrides for this BSP:
31
 *   - number of termios serial ports (defaults to 1)
32
 *   - Interrupt stack space is not minimum if defined.
33
 */
34
 
35
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
36
#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
37
 
38
/*
39
 *  Define the time limits for RTEMS Test Suite test durations.
40
 *  Long test and short test duration limits are provided.  These
41
 *  values are in seconds and need to be converted to ticks for the
42
 *  application.
43
 *
44
 */
45
 
46
#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
47
#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
48
 
49
/*
50
 *  Stuff for Time Test 27
51
 */
52
 
53
#define MUST_WAIT_FOR_INTERRUPT 0
54
 
55
#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
56
 
57
#define Cause_tm27_intr()
58
 
59
#define Clear_tm27_intr()
60
 
61
#define Lower_tm27_intr()
62
 
63
/*
64
 *  Simple spin delay in microsecond units for device drivers.
65
 *  This is very dependent on the clock speed of the target.
66
 */
67
 
68
#define delay( microseconds ) \
69
  { register rtems_unsigned32 _delay=(microseconds); \
70
    register rtems_unsigned32 _tmp=123; \
71
    asm volatile( "0: \
72
                     nbcd      %0 ; \
73
                     nbcd      %0 ; \
74
                     dbf       %1,0b" \
75
                  : "=d" (_tmp), "=d" (_delay) \
76
                  : "0"  (_tmp), "1"  (_delay) ); \
77
  }
78
 
79
/* Constants */
80
 
81
#define RAM_START 0
82
#define RAM_END   0x040000
83
 
84
/* Structures */
85
 
86
#ifdef GEN68302_INIT
87
#undef EXTERN
88
#define EXTERN
89
#else
90
#undef EXTERN
91
#define EXTERN extern
92
#endif
93
 
94
/*
95
 *  Device Driver Table Entries
96
 */
97
 
98
/*
99
 * NOTE: Use the standard Console driver entry
100
 */
101
 
102
/*
103
 * NOTE: Use the standard Clock driver entry
104
 */
105
 
106
/* miscellaneous stuff assumed to exist */
107
 
108
extern rtems_configuration_table BSP_Configuration;
109
 
110
extern m68k_isr_entry M68Kvec[];   /* vector table address */
111
 
112
/* functions */
113
 
114
void bsp_cleanup( void );
115
 
116
m68k_isr_entry set_vector(
117
  rtems_isr_entry     handler,
118
  rtems_vector_number vector,
119
  int                 type
120
);
121
 
122
#ifdef __cplusplus
123
}
124
#endif
125
 
126
#endif
127
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.