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

Subversion Repositories openrisc_me

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  bsp.h
2
 *
3
 *  This include file contains all Motorola 680x0 IDP board IO definitions.
4
 *
5
 *  $Id: bsp.h,v 1.2 2001-09-27 12:00:09 chris Exp $
6
 */
7
 
8
#ifndef __IDP_BSP_H
9
#define __IDP_BSP_H
10
 
11
#include <rtems.h>
12
#include <console.h>
13
#include <clockdrv.h>
14
#include <motorola/mc68230.h>
15
#include <motorola/mc68681.h>
16
 
17
/*
18
 *  confdefs.h overrides for this BSP:
19
 *   - number of termios serial ports (defaults to 1)
20
 *   - Interrupt stack space is not minimum if defined.
21
 */
22
 
23
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
24
#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
25
 
26
#define DUART_ADDR      0xb00003   /* base address of the MC68681 DUART */
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
#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
36
#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
37
 
38
/*
39
 *  Define the interrupt mechanism for Time Test 27
40
 *
41
 *  NOTE: tm27 apparently not supported.
42
 */
43
 
44
#define MUST_WAIT_FOR_INTERRUPT 0
45
 
46
#define Install_tm27_vector( handler ) 
47
 
48
#define Cause_tm27_intr()  
49
 
50
#define Clear_tm27_intr()  
51
 
52
#define Lower_tm27_intr()
53
 
54
/* Constants */
55
 
56
#define RAM_START 0
57
#define RAM_END   0x200000
58
 
59
#ifdef MIDP_INIT
60
#undef EXTERN
61
#define EXTERN
62
#else
63
#undef EXTERN
64
#define EXTERN extern
65
#endif
66
 
67
/*
68
 *  Device Driver Table Entries
69
 */
70
 
71
/*
72
 * NOTE: Use the standard Console driver entry
73
 */
74
 
75
/*
76
 * NOTE: Use the standard Clock driver entry
77
 */
78
 
79
/* miscellaneous stuff assumed to exist */
80
 
81
extern rtems_configuration_table BSP_Configuration;
82
 
83
extern m68k_isr_entry M68Kvec[];   /* vector table address */
84
 
85
/* functions */
86
 
87
void bsp_cleanup( void );
88
 
89
m68k_isr_entry set_vector(
90
  rtems_isr_entry     handler,
91
  rtems_vector_number vector,
92
  int                 type
93
);
94
 
95
void init_pit( void );
96
 
97
void transmit_char( char ch );
98
 
99
void transmit_char_portb( char ch );
100
 
101
#endif
102
/* end of include file */

powered by: WebSVN 2.1.0

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