source: rtems/c/src/lib/libbsp/c4x/c4xsim/include/bsp.h @ 7dd6e8d

4.104.114.84.95
Last change on this file since 7dd6e8d was 7dd6e8d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:16:38

2004-04-21 Ralf Corsepius <ralf_corsepius@…>

PR 614/bsps

  • include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all C4X Simulator IO definitions.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#ifndef __C4XSIM_h
16#define __C4XSIM_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <bspopts.h>
23
24#ifdef ASM
25
26#else
27#include <rtems.h>
28#include <rtems/console.h>
29#include <rtems/clockdrv.h>
30#include <rtems/console.h>
31#include <rtems/iosupp.h>
32
33/*
34 *  Define the time limits for RTEMS Test Suite test durations.
35 *  Long test and short test duration limits are provided.  These
36 *  values are in seconds and need to be converted to ticks for the
37 *  application.
38 *
39 */
40
41#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
42
43/*
44 *  Stuff for Time Test 27
45 */
46
47#include <rtems/c4x/c4xio.h>
48#define MUST_WAIT_FOR_INTERRUPT 0
49
50/* XXX */
51#define Install_tm27_vector( _handler ) \
52  set_vector( (_handler), 0x20, 1 )
53
54#define Cause_tm27_intr()  \
55  do { \
56     __asm__ volatile ( "trapu 0" ); \
57  } while (0)
58
59#define Clear_tm27_intr() \
60  do { \
61     ; \
62  } while (0)
63
64#define Lower_tm27_intr() \
65  do { \
66    c4x_global_interrupts_enable(); \
67  } while (0)
68
69/* Constants */
70
71/*
72 *  Device Driver Table Entries
73 */
74
75/*
76 * NOTE: Use the standard Console driver entry
77 */
78
79/*
80 * NOTE: Use the standard Clock driver entry
81 */
82
83/*
84 *  Information placed in the linkcmds file.
85 */
86
87/* functions */
88
89void bsp_start( void );
90
91void bsp_cleanup( void );
92
93rtems_isr_entry set_vector(                    /* returns old vector */
94  rtems_isr_entry     handler,                  /* isr routine        */
95  rtems_vector_number vector,                   /* vector number      */
96  int                 type                      /* RTEMS or RAW intr  */
97);
98
99void BSP_fatal_return( void );
100
101void bsp_spurious_initialize( void );
102
103extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
104
105extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
106
107extern uint32_t                  bsp_isr_level;
108
109#endif /* ASM */
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif
116/* end of include file */
Note: See TracBrowser for help on using the repository browser.