source: rtems/c/src/lib/libbsp/m68k/gen68340/include/bsp.h @ 89c86764

4.104.114.84.95
Last change on this file since 89c86764 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/*
2 * Board Support Package for `Generic' Motorola MC68340
3 *
4 * Based on the `gen68360' board support package, and covered by the
5 * original distribution terms.
6 *
7 *  $Id$
8 */
9
10/*  bsp.h
11 *
12 *  COPYRIGHT (c) 1989-1999.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.com/license/LICENSE.
18 */
19
20#ifndef __GEN68340_BSP_h
21#define __GEN68340_BSP_h
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <bspopts.h>
28
29#include <rtems.h>
30#include <rtems/console.h>
31#include <rtems/iosupp.h>
32#include <rtems/clockdrv.h>
33
34/*
35 *  confdefs.h overrides for this BSP:
36 *   - termios serial ports (defaults to 1)
37 *   - Interrupt stack space is not minimum if defined.
38 */
39
40/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
41#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
42
43/*
44 *  Stuff for Time Test 27
45 *  Don't bother with hardware -- just use a software-interrupt
46 */
47
48#define MUST_WAIT_FOR_INTERRUPT 0
49
50#define Install_tm27_vector( handler ) set_vector( (handler), 34, 1 )
51
52#define Cause_tm27_intr()       /* asm volatile ("trap #2"); */
53
54#define Clear_tm27_intr()
55
56#define Lower_tm27_intr()
57
58/*
59 *  Simple spin delay in microsecond units for device drivers.
60 *  This is very dependent on the clock speed of the target.
61 */
62
63#define rtems_bsp_delay( microseconds ) \
64  { register uint32_t         _delay=(microseconds); \
65    register uint32_t         _tmp=123; \
66    asm volatile( "0: \
67                     nbcd      %0 ; \
68                     nbcd      %0 ; \
69                     dbf       %1,0b" \
70                  : "=d" (_tmp), "=d" (_delay) \
71                  : "0"  (_tmp), "1"  (_delay) ); \
72  }
73
74/* Constants */
75
76/* Structures */
77
78/*
79 *  Device Driver Table Entries
80 */
81
82/*
83 * NOTE: Use the standard Console driver entry
84 */
85
86/*
87 * NOTE: Use the standard Clock driver entry
88 */
89
90/*
91 * How many libio files we want
92 */
93
94#define BSP_LIBIO_MAX_FDS       20
95
96/* miscellaneous stuff assumed to exist */
97
98extern rtems_configuration_table BSP_Configuration;
99
100extern m68k_isr_entry M68Kvec[];   /* vector table address */
101
102/* functions */
103
104void bsp_cleanup( void );
105
106m68k_isr_entry set_vector(
107  rtems_isr_entry     handler,
108  rtems_vector_number vector,
109  int                 type
110);
111
112/*
113 * Values assigned by link editor
114 */
115extern void *_RomBase, *_RamBase;
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif
122/* end of include file */
Note: See TracBrowser for help on using the repository browser.