source: rtems/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h @ ac7d5ef0

4.104.114.84.95
Last change on this file since ac7d5ef0 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.9 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, 1990, 1991, 1992, 1993, 1994.
8 *  On-Line Applications Research Corporation (OAR).
9 *  All rights assigned to U.S. Government, 1994.
10 *
11 *  This material may be reproduced by or for the U.S. Government pursuant
12 *  to the copyright license under the clause at DFARS 252.227-7013.  This
13 *  notice must appear in all copies of this file and its derivatives.
14 *
15 *  $Id$
16 */
17
18#ifndef __NO_BSP_h
19#define __NO_BSP_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <rtems.h>
26
27/*
28 *  Define the time limits for RTEMS Test Suite test durations.
29 *  Long test and short test duration limits are provided.  These
30 *  values are in seconds and need to be converted to ticks for the
31 *  application.
32 *
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 *  Stuff for Time Test 27
40 */
41
42#define MUST_WAIT_FOR_INTERRUPT 0
43
44#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
45
46#define Cause_tm27_intr()
47
48#define Clear_tm27_intr()
49
50#define Lower_tm27_intr()
51
52/*
53 *  Simple spin delay in microsecond units for device drivers.
54 *  This is very dependent on the clock speed of the target.
55 */
56
57#define delay( microseconds ) \
58  { \
59  }
60
61/* Constants */
62
63#define RAM_START 0
64#define RAM_END   0x100000
65
66/* miscellaneous stuff assumed to exist */
67
68extern rtems_configuration_table BSP_Configuration;
69
70/* functions */
71
72void bsp_cleanup( void );
73
74no_cpu_isr_entry set_vector(                    /* returns old vector */
75  rtems_isr_entry     handler,                  /* isr routine        */
76  rtems_vector_number vector,                   /* vector number      */
77  int                 type                      /* RTEMS or RAW intr  */
78);
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif
85/* end of include file */
Note: See TracBrowser for help on using the repository browser.